我是新的htaccess。 所以当我想要使用htacces做一个urlredirect,我总是得到一个redirect循环,并不知道如何解决它。 我一直在网上search,但没有find我的解决scheme。 请帮忙
我想要做的是将根目录(/ *)下的所有子页面redirect到根目录下的index.html(/index.html)
我需要将www.mydomain.com.au/*redirect到www.mydomain.com.au/index.html
这是我的代码
RewriteEngine On RewriteBase / RewriteRule ^(.*)$ http://www.mydomain.com.au/index.html [R=301,L]
请帮助如何解决这个非常感谢!
尝试添加…
RewriteCond %{REQUEST_URI} != http://www.mydomain.com.au/index.html
…之前…
RewriteRule ^(.*)$ http://www.mydomain.com.au/index.html [R=301,L]