BBR-APBT
06-01-2009, 06:06 AM
Here is my rewrite rule.
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.
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 1243885249 at 1243885249 ---------------
You mean to tell me no one knows.
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.
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 1243885249 at 1243885249 ---------------
You mean to tell me no one knows.