View Full Version : can't get my head around url rewrite! help!

12-17-2010, 09:45 AM
Hi, i am struggling to get my head around url rewrite in htaccess

first up i just want basic pages changing eg:

about.php => /about
contact.php => /contact
services.php => /services

then i'll want something a little more complex eg:

portfolio.php => /portfolio
portfolio.php?cat=web => /portfolio/web
portfolio.php?web=sitename => /portfolio/web/sitename

12-17-2010, 02:21 PM
i've worked out

RewriteRule ^contact$ contact.php [L]

lets /contact open contact.php

i can still access contact.php, should this be blocked now? have i done it correctly?