Here is my rewrite rule.
Code:
RewriteRule ^(.*)dir/dir2/([0-9]+)/(.*) $1myscript.php?src=%{REQUEST_FILENAME}
This semi works except it passes every file ext.
I am trying to make it so it only parses png gif and jpg
I tried this but then it takes every image on the site.
Code:
RewriteRule ^(.*)dir/dir2/([0-9]+)/(.*).[Jj][Pp][Gg]$|.[Gg][Ii][Ff]$|.[Pp][Nn][Gg]$ $1myscript.php?src=%{REQUEST_FILENAME}
if any one can help it would be great. Thanks in advance.
--------------- Added [DATE]1243885249[/DATE] at [TIME]1243885249[/TIME] ---------------
You mean to tell me no one knows.