fredski
08-15-2005, 06:08 PM
I have a couple of sites that I have Aliased to the main Domain URL. The site is a dynamic php site that is database led. How can I set it up so that it will redirect with a 301 to the exact requested page on the main domain?
This is due to the fact that we origionaly had a .com domain and a .co.uk domain, the .com was the main domain and the .co.uk just forwarded to the main url. Recently my main Url the .com one has dropped out of the UK filtered searches in google. I would now like to make my main site the .co.uk one and make the .com one the aliased with 301 redirects to all the relevant .co.uk pages.
So if someone or a search engine wanted:-
http://www.ideal-handling.com/catalog/safety-footwear-c-4_168.php
they would recieve a 301 to
http://www.ideal-handling.co.uk/catalog/safety-footwear-c-4_168.php
Could anyone let me know how I would correctly set this up?
This is due to the fact that we origionaly had a .com domain and a .co.uk domain, the .com was the main domain and the .co.uk just forwarded to the main url. Recently my main Url the .com one has dropped out of the UK filtered searches in google. I would now like to make my main site the .co.uk one and make the .com one the aliased with 301 redirects to all the relevant .co.uk pages.
So if someone or a search engine wanted:-
http://www.ideal-handling.com/catalog/safety-footwear-c-4_168.php
they would recieve a 301 to
http://www.ideal-handling.co.uk/catalog/safety-footwear-c-4_168.php
Could anyone let me know how I would correctly set this up?