mod_rewrite issue | Request exceeded the limit of 10 internal redirects
Posted
by
Chris Anarko Meow
on Server Fault
See other posts from Server Fault
or by Chris Anarko Meow
Published on 2012-10-09T04:39:33Z
Indexed on
2012/10/10
9:41 UTC
Read the original article
Hit count: 324
ok what Im doing normally works but since my rule "includes" itself is giving me issues and can't find a solution after hours working on different options.
I have a .htaccess with:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/3.15.0/(.*)
RewriteRule ^(.*)$ /3.15.0/$1 [L]
this is for my software versions, I have a program that can request sometimes versions that are updated and in the server may be behind a couple version so I want to be able to say that whatever is comming in forward to the latest version that in this example is 3.15.0
/var/www/nameblabla/3.15.0
my .htaccess is on /var/www/nameblabla/.htaccess
so the first Condition is to ignore request that already has the right path and version.. the second should be to grab all request and forward to 3.15.0... and of course not loose the path to the files I want from inside that should be the same. so far I can only get it to redirect to such directory but will loose the path and others I get the "Request exceeded the limit of 10 internal redirects" I guess this is because Im including the 3.15.0 path
Any help or another way to do this with out mod_rewrite?
© Server Fault or respective owner