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