alli14404 Posted February 14, 2008 Share Posted February 14, 2008 Hi, I'm having some issues working out how to phrase a certain rule. Basically I want certain folders to act as normal, as my main rule is pretty all encompassing. RewriteEngine On RewriteRule ^!((rss|assets|forum)/?)$ $2/ [L] RewriteRule ^([a-z0-9-]+)/?([a-z0-9-]+)?/?([0-9+])?/?$ index.php?1=$1&2=$2&3=$3 [NC] what I'm attempting with that first rule is that someone who goes to: website.com/rss or website.com/rss/ (an actual directory btw) ends up at website.com/rss/ (using L flag to make it the last rule) I can't seem to quite get why it wont apply :/ Am using this cheat sheet: http://www.ilovejackdaniels.com/cheat-sheets/mod_rewrite-cheat-sheet/ Any help would be greatly appreciated =] Quote Link to comment https://forums.phpfreaks.com/topic/91138-mod-rewrite-apache-help/ Share on other sites More sharing options...
powerspike Posted February 15, 2008 Share Posted February 15, 2008 Maybe you should be using the RewriteCond instead of attempting to block it with a rule, i haven't used them much myself, so unsure on what the syntax would be on it. Quote Link to comment https://forums.phpfreaks.com/topic/91138-mod-rewrite-apache-help/#findComment-467344 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.