Redirect Subdomain

Posted by user2237615 on Stack Overflow See other posts from Stack Overflow or by user2237615
Published on 2013-10-23T02:33:16Z Indexed on 2013/10/23 3:53 UTC
Read the original article Hit count: 159

Filed under:
|
|

I am trying to redirect an old website that was on Godaddy's website builder and Quick Blogcast to a new site on Wordpress. I have no problems redirecting from the old page structure to the new one.

For example:

For example:

http://sapientservicesllc.com/About_Us.html 

redirected to

http://sapientservicesllc.com/about-us/

I used: 301 redirect /About_Us.html http://sapientservicesllc.com/about-us/

In the htaccess file.

My problem is that I need to redirect all of the blog posts that were on a subdomain to the new wordpress site.

For example:

http://blog.sapientservicesllc.com/2011/10/14/risk-mitigation.aspx
redirects to
http://sapientservicesllc.com/risk-mitigation/

http://blog.sapientservicesllc.com/2012/10/04/could-cold-air-channeling-help-your-data-center.aspx 

redirects to

http://sapientservicesllc.com/cold-air-channeling-help-data-center/ 

This:

http://blog.sapientservicesllc.com/atom.aspx 

redirects to

http://sapientservicesllc.com/?feed=atom   

This:

http://blog.sapientservicesllc.com/2012/11.aspx 

redirects to

http://sapientservicesllc.com/2012/11/

How can I set up the redirect to go to the new site?

I have set the subdomain to forward to the actual domain in the Godaddy settings (blog.sapientservicesllc.com forwards to sapientservicesllc.com.

© Stack Overflow or respective owner

Related posts about apache

Related posts about redirect