Hi.
I'm building a site on localhost and I'm working on a directory called ZEFXIS.
The directory will contain several PHP scripts like services.php, clients.php, showcase.php etc. and of course index.php
I was testing out a simple mod_rewrite rule that goes like this:
code:
RewriteRule ^services/([0-9]+)$ services.php?id=$1
The main problem that I'm having is that the rewrite engine tries to apply the rule to all files linked inside the PHP document, like CSS, Javascript and image files so the result is a disaster.
I'm guessing I should use a Rewrite Condition, but I have no idea what that would be.
For me to be able to apply the same logic to the other PHP scripts, will I have to write a rule for each one of them?
Thank you in advance!




Bookmarks