I have a small problem with url rewriting on apache.
I would like it that it ignores the admin/ folder from rewriting.
Options +FollowSymLinks
RewriteRule ^([^/]*)/([^/]*)\.html$ /index.php?cat=$1&name=$2 [L]
RewriteRule ^([^/]*)/$ /index.php?cat=$1 [L]
I have triend doing it myself but I can’t figure it out.
Thanks.
You can use RewriteCond to put conditions on a
RewriteRule. Unless all of the conditions match, the RewriteRule won’t be applied. In your case, I’ll assume your admin folder is located athttp://yoursite.com/admin, so a rule like this should work:Put that before the
RewriteRulethat you want to prevent from being applied. The order ofRewriteCondandRewriteRuledirectives is important, so be sure of where you’re putting it.