我收到内部500错误,似乎没有给error_log写任何内容供我调试。在我的访问文件中,我可以看到我正在连接到服务器,但它以内部500响应。
我的.htaccess文件需要执行以下操作:
错误特别发生在#Products规则中 - 如果我通过超链接打开它,它也会被中断并且似乎打开链接,但直接从浏览器访问页面会出错。
有什么想法吗?
RewriteEngine On
# Rewrite to HTTPS where needed / possible:
RewriteCond %{HTTP_HOST} !=localhost
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Products
RewriteRule ^products/([a-zA-Z0-9_-]+)$ ./pages.php?type=products&page=$1 [L,NC]
RewriteRule ^services/([a-zA-Z0-9_-]+)$ ./pages.php?type=services&page=$1 [L,NC]
RewriteRule ^legal/([a-zA-Z0-9_-]+)$ ./pages.php?type=legal&page=$1 [L,NC]
RewriteRule ^about/([a-zA-Z0-9_-]+)$ ./pages.php?type=about&page=$1 [L,NC]
RewriteRule ^debitorder$ ./debitorders.php [L,NC]
RewriteRule ^pp/([a-zA-Z0-9_-]+)$ /modules/addons/propage/sites/$1 [L,NC]
# Status:
RewriteRule ^support/([a-zA-Z0-9_-]+)$ ./pages.php?type=support&page=$1 [L,NC]
# Announcements
RewriteRule ^announcements/([0-9]+)/[a-z0-9_-]+\.html$ ./announcements.php?id=$1 [L,NC]
RewriteRule ^announcements$ ./announcements.php [L,NC]
# Downloads
RewriteRule ^downloads/([0-9]+)/([^/]*)$ ./downloads.php?action=displaycat&catid=$1 [L,NC]
RewriteRule ^downloads$ ./downloads.php [L,NC]
# Knowledgebase
RewriteRule ^knowledgebase/([0-9]+)/[a-z0-9_-]+\.html$ ./knowledgebase.php?action=displayarticle&id=$1 [L,NC]
RewriteRule ^knowledgebase/([0-9]+)/([^/]*)$ ./knowledgebase.php?action=displaycat&catid=$1 [L,NC]
RewriteRule ^knowledgebase$ ./knowledgebase.php [L,NC]