The Bat Posted August 18, 2007 Share Posted August 18, 2007 I have an .htaccess file which contains RewriteRule and RewriteCond statements. Here is the code (snippets are examples): RewriteCond %{REQUEST_URI} /cat [OR] RewriteRule ^([^/\.]*)/?$ cat.php?kitty=$1 [L] That way when the URL is mysite.com/cat/foo, foo is kitty. The problem is that "kitty" is applied to all pages. I tried adding RewriteCond %{REQUEST_URI} !(/cat) [OR] RewriteRule ^([^/\.]*)/?$ index.php?something=$1 [L] So that if the URL does not end with /cat, "kitty" will be "something". But this does not work. How can I fix this? Thank you! Quote Link to comment 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.