Welcome to WebmasterWorld Guest from 54.147.220.66

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Htaccess ?

   
7:17 pm on Feb 18, 2009 (gmt 0)

5+ Year Member



I have renamed a subdirectory and search engines are still going to the old name

I get

Server Not Found
Error 404

example

old name abc.mydomin.com
new zyz.mydomain.com

Can someone help please. What do i write to redirect?

7:39 pm on Feb 18, 2009 (gmt 0)

WebmasterWorld Senior Member wilderness is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



RedirectMatch [httpd.apache.org]
7:40 pm on Feb 18, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If all pages are the same you simply need to drop an .htaccess file in the root of old.mydomain.com that has the following:
Redirect 301 / http://new.example.com

[edited by: jdMorgan at 2:11 am (utc) on Feb. 19, 2009]
[edit reason] example.com [/edit]