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