开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜