0
把我的頭髮拉出這個。我有以下的.htaccess文件,除了Wordpress的默認設置之外,還會執行一些自定義重定向。當我的本地WAMP的服務器上測試它,它的工作很好,但移動到生產後而網站甚至下降與internal server error
.htaccess:重寫規則:壞旗分隔符
任何幫助,將不勝感激我沒有收到服務器日誌和後一個RewriteRule: bad flag delimiters
錯誤。提前致謝!
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^rockford_weddings___welcome\.html$ /wedding/ [R=301,L]
RewriteRule ^blog/?$ /journal/ [R=301,L]
RewriteRule ^blog/(.*)$ /$1 [R=301,L]
RewriteRule ^portraitinvestment/?$ /portraitinvestment\.pdf [R=301,L]
RewriteRule ^weddinginvestment/?$ /weddinginvestment\.pdf [R=301,L]
RewriteRule ^holidaycards2014/?$ /holidaycards2014\.pdf [R=301,L]
</IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress