.htaccess - RewriteRule but not if URL contains -
i need modify rewriterule
not if parameter in url.
rewriterule ^img/potm/([^/]+) timthumb.php?src=img/potm/$1&h=112&w=160&zc=1
i'm thinking, if there special parameter in match, wont it? assume has done 2 rules right?
example
a url contain filename, www.example.com/img/potm/blah.jpg
fall through rewriterule
. bad url www.example.com/img/potm/blah.jpg?fail
wont parsed rule.
to make rewriterule work if query string empty, have add line before rewriterule
line:
rewritecond %{query_string} ^$
if rule in question actual rewrite rule, this:
rewritecond %{query_string} ^$ rewriterule ^img/potm/([^/]+) timthumb.php?src=img/potm/$1&h=112&w=160&zc=1
Comments
Post a Comment