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]
精彩评论