關于404錯誤,/index/index無法使用問題
在配置.htaccess時,index.php后面加?,即可
<IfModule?mod_rewrite.c> RewriteEngine?on RewriteCond?%{REQUEST_FILENAME}?!-f RewriteRule?^(.*)$?index.php?/$1?[QSA,PT,L] </IfModule>
在配置.htaccess時,index.php后面加?,即可
<IfModule?mod_rewrite.c> RewriteEngine?on RewriteCond?%{REQUEST_FILENAME}?!-f RewriteRule?^(.*)$?index.php?/$1?[QSA,PT,L] </IfModule>
2017-06-20
舉報
2018-10-15
NP啊老哥為什么加個問好就好了5555555555555555555555
2017-06-22
我用你這個有問題,
在你的Apache安裝文件夾conf里找到httpd.conf文件
搜索LoadModule rewrite_module modules/mod_rewrite.so 如果前面有注釋符號#,請去掉。
搜索Options FollowSymLinks,然后將它下面的AllowOverride None 修改為AllowOverride All;
已找到解決辦法了
2017-06-21
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>