Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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


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?

share|improve this question

migrated from stackoverflow.com Oct 10 '12 at 9:07

This question came from our site for professional and enthusiast programmers.

These are your only rules? –  Jon Lin Oct 9 '12 at 6:49
yes nothing else.. is a brand new install too –  Chris Anarko Meow Oct 9 '12 at 9:18
I dont see anything here that could be wroung, a few things i would check, not sure what other people think. But check apache version make sure they are the same, check PHP or .net what ever you use and make sure running the same version. You could also try doing a CLONE of the dev server to the production server, and see if that helps. –  RussellHarrower Oct 17 '12 at 4:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.