0
我在我的htaccess文件中使用此代碼,我相信它是正確的,但它不適用於我的新服務器。你可以在這裏找到我的phpinfo文件:http://www.saint57records.com/test.php。我剛剛更新了我的Apache,所以我不知道它是否在那裏。我試圖找到其他信息,但我找不到任何信息。htaccess重寫更新後停止工作
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/artists/index.php.*
RewriteRule ^artists/(.+)$ artists/index.php?artist=$1 [L]
我有這個設置爲
All
問題,我通過添加'Options -MultiViews'來關閉該功能來解決這個問題。解決了我的重寫問題! – worldofjr 2014-10-10 22:39:15
你在哪裏添加它? – 2014-10-10 22:40:14
如果'Options -MultiViews'不起作用(將其添加到.htaccess中),請檢查以下答案:http://serverfault.com/questions/77347/why-is-this-mod-rewrite-rewriterule-directive-not -htaccess-file/77362#77362 – 2014-10-10 22:40:33