【发布时间】:2014-02-09 13:57:19
【问题描述】:
我的网站有问题,在主页上它工作正常,但是当我访问内部页面时,它返回 302 Found 并继续重定向,我使用了检查器元素中的日志。在 chrome 中它正在工作,但在 ie11 和 firefox 中它继续重定向。
这是我的 htaccess:
RewriteEngine On
#
# Full path to your site
#
# RewriteBase /
#
# Rules
#
#RewriteCond %{HTTPS} off
#RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
#RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
#RewriteCond %{HTTPS} on
#RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
#RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php?do=$1
ErrorDocument 404 /error
您可以查看此链接以了解我在说什么。 http://mst.com.ph 然后试试:http://mst.com.ph/category/motoring/
【问题讨论】:
-
这里没有302规则。您在系统中的任何位置是否还有其他 .htaccess?
-
实际上是这样,它工作正常。但是在服务器中进行一些配置后突然没有了。是的,我在 min 文件夹中有 htaccess
标签: php apache .htaccess http header