Forum Moderators: phranque
After trying to follow the "What you don't know..." thread - [webmasterworld.com...]
I have managed to rewrite the following url to a more friendly one.
The user goes to:
www.mysite.com/events/sport/index.html and is redirected to www.mysite.com/events.php?$event=sport
I have done this by using the following code in my htaccess file:
RewriteRule ^events/([^/]+)/?(index\.html)?$ http://www.mysite.cm/events.php?event=$1 [L] Great.
But I also need to redirect anyone who goes to www.mysite.com/events/ to www.mysite.com/events.php?$event=all
I can only get it working if I stop the first rule so I'm guessing it's conflicting somehow.
Can any point me in the right direction?
Thanks