0
每当我取消注释ScriptAliasMatch
行,我得到一个500错误。我不确定这是为什么。对我而言,一切看起来都是正确的。错误日志表示ScriptAliasMatch不允许使用它们。ScriptAliasMatch导致500错误
AddHandler application/x-httpd-php5s .php .css .xml
Options -Indexes
# Environment Variables
SetEnv INCLUDES /home1/tylercro/public_html/includes/
SetEnv SITE_ROOT /home1/tylercro/public_html
# Error Documents
ErrorDocument 400 /400/
ErrorDocument 401 /401/
ErrorDocument 403 /403/
ErrorDocument 404 /404/
ErrorDocument 500 /500/
RewriteEngine On
# Take off a the end script name if it is an index page.
RewriteCond %{REQUEST_URI} (.*)(index|default)\.\w{1,5}$ [NC]
RewriteRule .* %1 [R=301]
# Force "/" at end of URL if directory.
RewriteRule (.*)!(\.\w{1,5}$) $1 [R=301]
# ScriptAliasMatch ^/gallery/([^/]+)/?$ /home1/tylercro/public_html/gallery/?tag=$1