Forum Moderators: phranque

Message Too Old, No Replies

Kind of got it working...

mod rewrite I mean...

         

elgumbo

3:35 pm on May 13, 2005 (gmt 0)

10+ Year Member



Hi

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

elgumbo

4:04 pm on May 13, 2005 (gmt 0)

10+ Year Member



It's OK - I managed to figure it out.

Mods please feel free to remove this post.

Thanks