Mod_rewrite and .htaccess - stop rewrite if script/file exists?

This is because after processing a rewrite rule the whole process restarts with the new url. The processing of an url can go thru the rules over and over again each time with the changed URL, until there is no more change (no applying rules found).

This is because after processing a rewrite rule the whole process restarts with the new url. The processing of an url can go thru the rules over and over again each time with the changed URL, until there is no more change (no applying rules found). You need this: RewriteCond %{REQUEST_FILENAME}!

-f RewriteCond %{REQUEST_FILENAME}! -d RewriteRule (.*) /index. Php L Don't think of the rules as a program, they are rules which can overlap and must be as specific as possible with each one.

Thanks for your response. Unfortunately your code gives me a 500 server error. :( – Thomas Clayson Mar 14 '11 at 23:30 @Thomas Clayson I just combined your rules.

I modified it a little bit to forward every nonexistent request to index.php. – vbence Mar 14 '11 at 23:34 ah I see, your edit makes sense, and seems to work! No idea why mine dosen't... :/ ah well, will stick with yours.

:) thank you – Thomas Clayson Mar 14 '11 at 23:37 You can not "stop" the processing of your rules. If a rule gets executed the new URL start its way thru the rules again. – vbence Mar 14 '11 at 23:41 oh right... whats L for then?

I though that stopped it? – Thomas Clayson Mar 14 '11 at 23:42.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions