Jump to content

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...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.