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.

[code] Redirect 301 /ABC/Home.aspx [/code]

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

[code] Redirect 301 /ABC [/code]

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


[code] Redirect 301 /ABC/Home.aspx #/ABC/Home.aspx Old Link
Redirect 301 /ABC #/ABC/ Old Folder Link[/code]

This on StackOverFlow Here


Please enter your comment!
Please enter your name here

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