I’m trying to get my head around mod_rewrite and friendly URLS.
OK, on a very basic level I have the following rule:
RewriteRule ^register$ register.php [L]
This allows me to browse to http://www.mydomain.com/register
The hyperlink within my pages shows register.php. Do I have to manually change my links to register?
Esentiallly, I do not want the .php extension on any of my links.
Thanks!!
Yes, you must manually change the hyperlinks (or use your favourite search-and-replace tool).
mod_rewritecan’t do this for you; it can only rewrite incoming requests, not outgoing HTML.