310 too many redirects after moving drupal site to fast-cgi
Posted
by
Jaels
on Server Fault
See other posts from Server Fault
or by Jaels
Published on 2012-11-21T21:40:49Z
Indexed on
2012/11/21
23:01 UTC
Read the original article
Hit count: 444
Here is trouble: When i follow this link - http://znak.net.ua it rewrites to http://znak.net.ua/ru/ru/ru/ru/ru/ and i got Error 310 (net::ERR_TOO_MANY_REDIRECTS)
This happend when i start using fast-cgi insteed of mod_php Here is my .htaccess:
ErrorDocument 404 "The requested file favicon.ico was not found.
DirectoryIndex index.php
<IfModule mod_php4.c>
</IfModule>
<IfModule sapi_apache2.c>
</IfModule>
<IfModule mod_php5.c>
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault A1209600
ExpiresByType text/html A1
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(.*)$ http://znak.net.ua/ru/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ ru/index.php?q=$1 [L,QSA]
</IfModule>
© Server Fault or respective owner