I've recently converted an html site that I did a while back into a Drupal install so that others in the company can easily edit things. Everything went well enough, but I am now completely baffled by a .htaccess problem I am having.
I have redirected all the html pages as follows (just a snippet of them all) :
redirect 301 /sports.html http://www.udoschoice.co.uk/udo_oil_and_sports
redirect 301 /winwinwin.html http://www.udoschoice.co.uk/win_win_win
redirect 301 /buy-online.htm http://www.udoschoice.co.uk/shop/index.php
redirect 301 /locator.html http://www.udoschoice.co.uk/udos_oil_store_locator
These all work great. However, on our adverts, and other marketing info, we also direct people to udoschoice.co.uk/sports, and /locator - this is just done for the simplicity of not putting in a big URL. The redirects have been set as follows:
redirect 301 /sports http://www.udoschoice.co.uk/udo_oil_and_sports
redirect 301 /locator http://www.udoschoice.co.uk/udos_oil_store_locator
Now, when udoschoice.co.uk/sports, and udoschoice.co.uk/locator are entered into any browser, they redirect as follows:
http://www.udoschoice.co.uk/udo_oil_and_sports?q=sports
http://www.udoschoice.co.uk/udos_oil_store_locator?q=locator