301 permanent redirection help


kabirthapar

New Member
Hello all, hope you all are doing well. I have a website and its URL has been changed and i want to implement 301 permanent redirection on my website. The home page URL is same but inner page URL's have been changed. My Home page website URL is unchanged- http://www.emulateinfotech.com but the inner URL's have been renamed. here are some old and new URL's of my website-

Old URL- http://www.emulateinfotech.com/about-us.aspx
New URL- http://www.emulateinfotech.com/about-us

Old URL- http://www.emulateinfotech.com/portfolio.aspx
New URL- http://www.emulateinfotech.com/portfolio

Old URL- http://www.emulateinfotech.com/contact-us.aspx
New URL- http://www.emulateinfotech.com/contact-us

Can anyone tell me the 301 permanent redirection code from old aspx page to new php website. It would be very helpful if anyone could help. Thanks in advance.
 

fisicx

Active Member
You can do this in your htaccess

 

kabirthapar

New Member
I have tried to redirect from htaccess using the code provided by you its not working. Its showing 404 error. I think I need to change something in web.config?
 

fisicx

Active Member
No, it means you haven’t set up your htaccss correctly.

There are dozens of examples on how to do this. Google is your friend here.
 
Top