Remove .aspx from Umbraco URLs

You probably noticed, as did I that when you enable clean urls in umbraco that you can still access your pages using the .aspx extension.

This is pretty bad for SEO as Google will see identical copies of each page, thus duplicate content as far as the bots will be concerned.

To solve this you can go into the UrlRewriting.config file in your umbraco installation and drop in the code below, make sure it is within the <rewrites> tag.

I found this code on http://snipt.org/tnolj/, thanks @danosphere =D

  1. alanfeekery posted this
blog comments powered by Disqus