我一直在努力解决内部重定向问题。我正在尝试在本地运营一个网站。它确实运行了,但是有些改变了,我不知道是什么。 http://localhost/store/abc将加载通常显示产品的OpenCart。但是,它现在出现500个内部错误。
Apache错误日志显示: AH00124:由于可能的配置错误,请求超出了10个内部重定向的限制。必要时使用'LimitInternalRecursion'增加限制。使用“ LogLevel调试”获取回溯。
.htaccess文件如下:(该网站不是www.abc.com)
# 1.To use URL Alias you need to be running apache with mod_rewrite enabled.
# 2. In your opencart directory rename htaccess.txt to .htaccess.
# For any support issues please visit: http://www.opencart.com
Options +SymlinksIfOwnerMatch
# Prevent Directoy listing
Options -Indexes
# Prevent Direct Access to files
<FilesMatch "\.(tpl|ini|log)">
Order deny,allow
Deny from all
</FilesMatch>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html
RewriteBase /store/
RewriteRule ^login$ account/login [R=301,L]
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^download/(.*) /index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
非常感谢!