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


Please enter your comment!
Please enter your name here

The reCAPTCHA verification period has expired. Please reload the page.

This site uses Akismet to reduce spam. Learn how your comment data is processed.