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. 笨3 404找不到網頁
- 5. 無法找到我不能讓你笨
- 6. 笨模型未找到
- 7. 笨是CI_Controller沒有找到
- 8. 笨類「REST_Controller」未找到
- 9. 笨無法找到模型
- 10. 笨404未找到錯誤
- 11. 分頁不是笨工作得到404找不到網頁
- 12. 不能得到笨
- 13. 笨:無法找到您指定
- 14. 類的Memcached沒有找到,PHP笨
- 15. 笨2.1控制器沒有找到
- 16. URL未找到(笨應用在Amazon EC2)
- 17. 笨沒有找到URL拋出的404
- 18. cron作業 - 笨 - 類 '是CI_Controller' 未找到
- 19. SimpleTester對笨失敗,「類‘GroupTest’未找到」
- 20. 尋找類似笨
- 21. 找根據在笨
- 22. 笨的.htaccess得不到寫
- 23. 404找不到頁面您請求沒有found.-笨
- 24. 笨2.02 - 傳遞參數 - 找不到網頁
- 25. 致命錯誤:類模型\ some_model找不到GAS-ORM笨
- 26. PHPWord和笨不能找到輸出文件
- 27. 笨路由器谷歌找到的網頁不存在
- 28. 笨路由返回「找不到文件」搬住服務器
- 29. 笨的.htaccess的工作,但不能找到控制器
- 30. 如何解決「找不到對象!」錯誤笨控制
您所選擇的互聯網搜索引擎通常能幫助你搜索。只是注意你是否需要提示如何繼續。 – hakre 2013-02-12 09:36:37
如此多的代碼維基鏈接現在被破壞:( – 2013-02-12 12:29:10