Hi. I'm new to this .htaccess malarky so if you could confirm whether this is correct i'd really appreciate it.
this is my .htaccess file;
Code:
RewriteEngine on
RewriteRule ^add/event/$ addevent.php [L]
RewriteRule ^user/([^/\.]+)/?$ user.php?id=$1 [L]
And I want these URL re-write's to happen...
www.mywebsite.com/user.php?id=10
to
www.mywebsite.com/user/10
and
www.mywebsite.com/addevent.php
to
www.mywebsite.com/add/event
I can't get it working though, is this not correct?
Many thanks,
Patrick.