SEO: Removing *.aspx Files from Google Search Results
Hi,
I am using directory URLs and my sitemap.xml is clean, but *.aspx files are still showing up in search results. Anybody have any idea how to remove these native file-extension URLs?
You should put a 301 redirect on the .aspx files to their non .aspx counterparts by adding this to UrlRewriting.config, this will help you preserve any page rank that was associated with the .aspx pages:
SEO: Removing *.aspx Files from Google Search Results
Hi,
I am using directory URLs and my sitemap.xml is clean, but *.aspx files are still showing up in search results. Anybody have any idea how to remove these native file-extension URLs?
Thanks,
Garrett
Hi Garrett,
I may be misunderstanding the question here. But, wouldn't adding the following line to robots.txt solve the issue?
Jamie
You should put a 301 redirect on the .aspx files to their non .aspx counterparts by adding this to UrlRewriting.config, this will help you preserve any page rank that was associated with the .aspx pages:
That markup is a miracle. THANK YOU Amir!
Glad I could help, that's definitely been a part of my Umbraco boilerplate for a while now :)
is working on a reply...