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, thanks @danosphere =D


Published by

Alan Feekery

Developer, Gamer, Musician, Cyclist and big Motorsport fan... enjoys the odd cup of coffee :)

One thought on “Remove .aspx from Umbraco URLs”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s