Problem: Site moved from asp to php (Windows Server to Linux). Old Links (Eg. are not available on new server.

Solution:  .htaccess file can do this for you.

For Example Want to Redirect page traffic to write following code in .htaccess file place that file in ABC folder.

 Redirect 301 /ABC/Home.aspx 

And if Want to redirect traffic of link then add following line as well

 Redirect 301 /ABC 

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


 Redirect 301 /ABC/Home.aspx #/ABC/Home.aspx Old Link
Redirect 301 /ABC #/ABC/ Old Folder Link

This on StackOverFlow Here

Leave a Reply