我有以下.htaccess文件笨的.htaccess不會讓我的網址正確
<IfModule mod_rewrite.c>
# Checks to see if the user is attempting to access a valid file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
我在本地主機上安裝它WAMP。通常這htaccess工作完美,但這次不是我不得不提到我的網址index.php。我檢查了Apache中啓用了mod_rewrite。我只是想知道我錯過了
show application/config/config.php – cssBlaster21895
$ config ['base_url'] \t ='';和$ config ['index_page'] ='index.php'; –
好吧我通過重新安裝wamp來解決了這個問題,但我仍然無法弄清楚問題所在。 –