Hi, I have recently changed my domain name, and hence I am loosing ot on a lot of visitors on my old site. I need a url redirection script, but a different one. For eg. if some one visits : http://www.myolddomain.com/abc/ghi/ then he should be redirected to http://www.newdomain.com/ggh/rrr/ghi/ I just want the "ghi" to remain the same. Please help me..is this possible?
Do you still own your old domain? Just put this in the abc folder <META HTTP-EQUIV="Refresh" CONTENT="0;URL=http://www.newdomain.com/ggh/rrr/ghi/"> Code (markup):
Yes, I do own the old domain. But what I want is the url should be taken from the user, for eg. if the user types www.abc.com/xyz/ ,it should go to www.ghi.com/xyz/ xyz, can be anything according to the users wish.. I cannot fix it. any clues..?
Redirect /xyz/ http://www.ghi.com/xyz/ Code (markup): Copy and paste it into your notepad and save it as ".htaccess" file.Then upload it to the xyz folder of the abc.com directory.