homepage Welcome to WebmasterWorld Guest from 54.211.219.178
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Htaccess ?
brnm98105




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

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?

 

wilderness




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

RedirectMatch [httpd.apache.org]

The Contractor




msg:3852541
 7:40 pm on Feb 18, 2009 (gmt 0)

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]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved