Problem: Site moved from asp to php (Windows Server to Linux). Old Links (Eg. www.addictiveblogs.com/ABC/Home.aspx) are not available on new server.

Solution:  .htaccess file can do this for you.

For Example Want to Redirect www.addictiveblogs.com/ABC/Home.aspx page traffic to www.addictiveblogs.com write following code in .htaccess file place that file in ABC folder.

 Redirect 301 /ABC/Home.aspx http://www.addictiveblogs.com/ 

And if Want to redirect traffic of www.addictiveblogs.com/ABC/ link then add following line as well

 Redirect 301 /ABC http://www.addictiveblogs.com/ 

Now Traffic of Both Links will be redirected to your home page.

code:

 Redirect 301 /ABC/Home.aspx http://www.addictiveblogs.com/ #/ABC/Home.aspx Old Link
Redirect 301 /ABC http://www.addictiveblogs.com/ #/ABC/ Old Folder Link

This on StackOverFlow Here

NO COMMENTS

Leave a Reply