Jump to content

Rewrite Rule Exception


-Karl-

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/207681-rewrite-rule-exception/
Share on other sites

Is that sarcasm that my spidey senses can detect?

 

What cags means, is that with your extensive mod_rewrites, you should know how to add an exception for /forums... I believe. However, throwing attitude about like that when you are asking for help, just doesn't get you anywhere bud.

 

Whats you're forum directory?

No he was right first time, that's sarcasm. I'm not putting in more effort to solve your problem than you are. Therefore, "doesn't work", doesn't cut it.

 

Before I had posted that "doesn't work" I had already got it working, therefore I didn't fancy wasting my time writing anymore.

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.