Q
找不到笨
-1
A
回答
1
mod_rewrite的是Apache Web服务器的一部分,它不是笨的一部分,该扩展使用写SEO友好的URL
有这个环节,这将有助于你写的搜索引擎友好的URL上看
检查的mod_rewrite加载与否只是把空的PHP文件phpinfo()函数调用浏览器,文件,然后搜索mod_rewrite的启用它搜索您的Apache Web服务器的conf目录下的Apache的httpd.conf,如果它与#评论只需将其删除并在加载后重新启动Web服务器即可服务器调用再次phpinofo和搜索mod_rewrite的
1
你.htaccess
应该是这个样子:
<IfModule mod_rewrite.c>
RewriteEngine On
#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ index.php?/$1 [L]
#When your application folder isn't in the system folder
#This snippet prevents user access to the application folder
#Submitted by: Fabdrol
#Rename 'application' to your applications folder name.
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ index.php?/$1 [L]
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 index.php
</IfModule>
相关问题
- 1. 找不到对象! - 笨
- 2. 笨找不到网址
- 3. 笨找不到控制器
- 4. 笨是CI_Controller没有找到
- 5. 分页不是笨工作得到404找不到网页
- 6. 不能得到笨
- 7. 笨:无法找到您指定
- 8. 笨2.1控制器没有找到
- 9. 类的Memcached没有找到,PHP笨
- 10. SimpleTester对笨失败,“类‘GroupTest’未找到”
- 11. 笨的.htaccess的工作,但不能找到控制器
- 12. 笨路由返回“找不到文件”搬住服务器
- 13. 得到笨
- 14. 得到与笨
- 15. 我不能笨
- 16. 不能在笨
- 17. 笨不会夹
- 18. 不能在笨
- 19. 笨不显示
- 20. XSS_CLEAN不笨
- 21. 不能在笨
- 22. 不能笨
- 23. 不能与笨
- 24. 不能在笨
- 25. 404页未找到。未找到您所请求的页面。笨3.0.6
- 26. 得到不同的数据库笨
- 27. 笨不是在活页很好地工作未找到错误的服务器
- 28. 笨MIN_LENGTH []不工作
- 29. 图像不是笨
- 30. 笨分页不wotking
您所选择的互联网搜索引擎通常能帮助你搜索。只是注意你是否需要提示如何继续。 – hakre 2013-02-12 09:36:37
如此多的代码维基链接现在被破坏:( – 2013-02-12 12:29:10