Redirect old directory to new website

Posted by JonP on Stack Overflow See other posts from Stack Overflow or by JonP
Published on 2010-05-10T22:42:26Z Indexed on 2010/05/11 1:44 UTC
Read the original article Hit count: 283

Filed under:
|
|

I want to use htaccess to redirect all traffic from www.oldsite.com/directory to www.newsite.com

I want to make it so that when visitors view any webpage within www.oldsite.com/directory (ie. www.oldsite.com/directory/contact.html) it gets redirected to the homepage of www.newsite.com

I tried "Redirect /directory http:www.newsite.com" but the webpage the visitor is trying to access within the directory gets attached to the new sites url (ie. www.newsite.com/contact.html)

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about apache