I need to modify this RewriteRule not to do something if a parameter is in the URL.
RewriteRule ^img/potm/([^/]+) timthumb.php?src=img/potm/$1&h=112&w=160&zc=1
I’m thinking, if there is a special parameter in the match, then it wont do it? I assume this has to be done with two rules right?
Example
A good URL will only contain the filename, www.example.com/img/potm/blah.jpg this will fall through to the RewriteRule. A bad URL will be www.example.com/img/potm/blah.jpg?fail which wont be parsed by the Rule.
To make RewriteRule work ONLY if query string is empty, you have to add this line just before
RewriteRuleline:If rule in your question is the actual rewrite rule, then it will look like this: