Someswara Siripuram
Someswara Siripuram

Reputation: 151

Remove aspx extension from SharePoint pages

I would like to remove the ".aspx" extension from pages in a SharePoint web application. This can be done with URL rewriting in IIS web applications, but I cannot find any way to achieve this is SharePoint site pages.

e.g. abcsite/pages/default.aspx should be abcsite/pages/default.

Upvotes: 3

Views: 2569

Answers (2)

huMpty duMpty
huMpty duMpty

Reputation: 14460

I am not sure which version of sherepoint you are using.

You can use IIS URL Rewrite 2.0 module

Please have a look at these example which has setp by step instructions

IIS7 URL Rewrite module

SharePoint 2010 with IIS URL Rewrite 2.0

URL Routing with ASP.NET 4.0

Upvotes: 1

webnoob
webnoob

Reputation: 15934

I don't know much about Sharepoint but you can use Url Routing with ASP.NET as an alternative to IIS Rewrite Modules.

One advantage being that forms post back to the correct URL which I prefer (without having to reverse map using IIS Url Rewriting)

Note: Available from .NET 4.0

Upvotes: 2

Related Questions