[thelist] mod_rewrite rules
Volkan Özçelik
volkan.ozcelik at gmail.com
Sat Jan 19 01:03:55 CST 2008
Hi Robert,
My current rule is:
>
> RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
>
> And that works fine as is... but now I need to add two subdirectories
> that won't be handled by this... what would an appropriate rule be?
May be you can write a second rewrite rule which matches "if" there is dir1
or dir2 on the path
Something like
^.*?([/\\]dir1|[/\\]dir2).*?$ (not fully tested, use with caution)
and then rewrite it to /$1.
Does that help?
--
Volkan Ozcelik
+> linkibol.com - in seek for quality links : http://www.linkibol.com/
+> Going solo in Turkish: http://www.fikribol.com/donkisot/
+> My projects/studies/trials/errors : http://www.sarmal.com/
+> Sardalya JavaScript Library: http://www.sarmal.com/sardalya/
More information about the thelist
mailing list