Hello. Me again. I have some more mod_rewrite questions related to my original request so I thought I'd just continue here.
At our other site, moonremovals.co.uk I have some urls that need redirecting to new, improved urls. I'll probably do this the same way I did with our main site (southeringtons.co.uk) on a per url basis. For example:
RewriteRule ^contact.htm$
http://www.southeringtons.co.uk/contact-us/ [R=301]
At the same time, I would like to reorganise the actual files so I end up with each page as an individual .php file in the root directory (for example, moonremovals.co.uk/contact-us.php), but still I want people to access the pages from the new, improved urls as above (moonremovals.co.uk/contact-us/).
I'll name the php files appropriately so that the same rule can be use for all of them (/contact-us.php to /contact-us/ ... /downloads.php to /downloads/ etc...).
To summarise:
If people visit moonremovals.co.uk/contact.htm redirect them to moonremovals.co.uk/contact-us/ and show them content from moonremovals.co.uk/contact-us.php
If people visit moonremovals.co.uk/contact-us.php redirect them to moonremovals.co.uk/contact-us/ and show them content from moonremovals.co.uk/contact-us.php
If people visit moonremovals.co.uk/contact-us/ don't redirect them, just show them content from mooremovals.co.uk/contact-us.php
How would I go about doing this? I hope it all makes sense.
Thanks.
Richard