开发者

How do I stop my .htaccess file causing a recursive redirect

开发者 https://www.devze.com 2023-01-19 10:55 出处:网络
Using the following .htaccess to redirect my query to fcgi scriptI get a recursive redirect problem. Can anyone suggest what needs tweaking?

Using the following .htaccess to redirect my query to fcgi scriptI get a recursive redirect problem. Can anyone suggest what needs tweaking?


AddHandler fcgid-script .fcgi
RewriteEngine On

Re开发者_StackOverflow社区writeCond %{HTTP_HOST} !^answers.mynewdomain.co.uk$ [NC]
RewriteRule ^(.*)$ http://answers.mynewdomain.co.uk/$1 [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ osqa.fcgi/$1 [QSA,L]


Does it help to escape the dots?

RewriteCond %{HTTP_HOST} !^answers\.mynewdomain\.co\.uk$ [NC]
0

精彩评论

暂无评论...
验证码 换一张
取 消