...

View Full Version : basic htaccess url re-write problem.



paddyfields
03-03-2011, 11:47 AM
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;



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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum