-Karl- Posted July 14, 2010 Share Posted July 14, 2010 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? Quote Link to comment https://forums.phpfreaks.com/topic/207681-rewrite-rule-exception/ Share on other sites More sharing options...
cags Posted July 14, 2010 Share Posted July 14, 2010 RewriteRule ^forums/?$ - [L] Quote Link to comment https://forums.phpfreaks.com/topic/207681-rewrite-rule-exception/#findComment-1085784 Share on other sites More sharing options...
-Karl- Posted July 14, 2010 Author Share Posted July 14, 2010 Didn't work. Quote Link to comment https://forums.phpfreaks.com/topic/207681-rewrite-rule-exception/#findComment-1085836 Share on other sites More sharing options...
cags Posted July 14, 2010 Share Posted July 14, 2010 With you providing such elaborate details, it's amazing you haven't found a solution. Quote Link to comment https://forums.phpfreaks.com/topic/207681-rewrite-rule-exception/#findComment-1085837 Share on other sites More sharing options...
-Karl- Posted July 14, 2010 Author Share Posted July 14, 2010 Is that sarcasm that my spidey senses can detect? Quote Link to comment https://forums.phpfreaks.com/topic/207681-rewrite-rule-exception/#findComment-1085869 Share on other sites More sharing options...
TeddyKiller Posted July 14, 2010 Share Posted July 14, 2010 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? Quote Link to comment https://forums.phpfreaks.com/topic/207681-rewrite-rule-exception/#findComment-1085975 Share on other sites More sharing options...
cags Posted July 14, 2010 Share Posted July 14, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/207681-rewrite-rule-exception/#findComment-1085978 Share on other sites More sharing options...
TeddyKiller Posted July 14, 2010 Share Posted July 14, 2010 Ah, my bad. I must of read it wrong first time round. Sorry (: Quote Link to comment https://forums.phpfreaks.com/topic/207681-rewrite-rule-exception/#findComment-1085980 Share on other sites More sharing options...
-Karl- Posted July 14, 2010 Author Share Posted July 14, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/207681-rewrite-rule-exception/#findComment-1085999 Share on other sites More sharing options...
cags Posted July 14, 2010 Share Posted July 14, 2010 Very community spirited of you. Quote Link to comment https://forums.phpfreaks.com/topic/207681-rewrite-rule-exception/#findComment-1086014 Share on other sites More sharing options...
-Karl- Posted July 14, 2010 Author Share Posted July 14, 2010 Very community spirited of you. Thanks, you're getting quite good with sarcasm, keep it up and you may one day be as good as me. Quote Link to comment https://forums.phpfreaks.com/topic/207681-rewrite-rule-exception/#findComment-1086142 Share on other sites More sharing options...
nookle Posted August 26, 2010 Share Posted August 26, 2010 RewriteRule ^forums/?$ - [L] cags, Your help worked for me...thanks for posting. Quote Link to comment https://forums.phpfreaks.com/topic/207681-rewrite-rule-exception/#findComment-1103911 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.