...

View Full Version : Rewrite rule help



-Karl-
07-14-2010, 03:24 AM
I have my rewrite rules:

Options +FollowSymLinks
RewriteEngine on
RewriteRule \.(gif|png|jpg|css|js)$|^index\.php$ - [L]

RewriteRule ^admincp/(.*)/(.*)/(.*)?$ index.php?page=admincp&$1=$2&id=$3 [NC,L]
RewriteRule ^admincp/(.*)/(.*)?$ index.php?page=admincp&$1=$2 [NC,L]

RewriteRule ^(.*)/([0-9]+)/([a-zA-Z._&-]+)?$ index.php?page=$1&flibble=$1view&id=$2 [NC,L]
RewriteRule ^(.*)/([0-9]+)/([a-zA-Z._&-]+)/?$ index.php?page=$1&flibble=$1view&id=$2 [NC,L]
RewriteRule ^(.*)/([0-9]+)?$ index.php?page=$1&flibble=$1view&id=$2 [NC,L]

RewriteRule ^(.*)/([a-zA-Z._&-]+)?$ index.php?page=$1&skill=$2&orderby=level [NC,L]
RewriteRule ^(.*)/(.*)/(.*)/(.*)$ index.php?page=$1&skill=$2&rsname=$3&action=$4 [NC,L]

RewriteRule ^(.*)?$ index.php?page=$1 [NC,L]

However, as you can see, it will rewrite anything.

I need to make an exception for the forums directory.

Any ideas how I would do this?

abduraooft
07-14-2010, 08:47 AM
Check http://www.webmasterworld.com/forum92/5918.htm

-Karl-
07-14-2010, 02:32 PM
Tried what's in there, without any luck.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum