【发布时间】:2015-12-29 08:10:02
【问题描述】:
我在 .htaccess 上有以下内容。
RewriteOptions inherit
RewriteEngine on
RewriteCond %{HTTP_HOST} ^test\.net$ [OR]
RewriteCond %{HTTP_HOST} ^www\.test\.net$
RewriteRule ^doc\/\/?(.*)$ "http\:\/\/dl\.test\.net\/doc\/$1" [R=301,L]
RewriteCond %{HTTP_HOST} ^test\.net$ [OR]
RewriteCond %{HTTP_HOST} ^www\.test\.net$
RewriteRule ^upload\/\/?(.*)$ "http\:\/\/dl\.test\.net\/upload\/$1" [R=301,L]
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . "http\:\/\/dl\.test\.net\/wp-content/uploads\/".{REQUEST_FILENAME} [L,R=301]
# BEGIN WordPress
# END WordPress
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^welayah\/\/?(.*)$ "http\:\/\/test\.net\/$1" [R=301,L]
RewriteCond %{HTTP_HOST} ^test\.net$ [OR]
RewriteCond %{HTTP_HOST} ^www\.test\.net$
RewriteRule ^up\/\/?(.*)$ "http\:\/\/dl\.test\.net\/up\/$1" [R=301,L]
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 176.9.109.114
网站显示 500 内部服务器错误。关于 apache 错误日志
.htaccess: RewriteRule: 错误标志分隔符
寻求帮助。
【问题讨论】:
-
Here are some tips 用于调试您的 htaccess。 one question 和 another question 也出现了同样的错误。我不确定您是否需要 RewriteRules 中的
",但请尝试删除它们...
标签: apache mod-rewrite