Page 1 of 1

Code for requested url link

Posted: Tue Sep 13, 2005 10:30 am
by fredski
Im trying to work out some code to put into the footers of my pages that will link to my old domain page that has a 301 redirect on it to help the search engines know that the old domain page has been permanently changed.

Code: Select all

<a href="http://www.my-old-domian.com<?=$_SERVER['REQUEST_URI']?>">my old domain</a>
This is the code I'm working on but as yet it dosn't work.

The page structure is the same the only difference is that the pages now have a different domain name. Im concentrating on getting links to the new domain, but need google to recognise that the old domain page has now been replaced by the new one.

I've also as an added precaution added a full sitemap to google for the old domain that is set up with a 301 redirect.

Can anyone help me with the link code?

Posted: Tue Sep 13, 2005 8:21 pm
by feyd
are you sure short tags are on?