Forum Discussion

Muhammad Farhan's avatar
Muhammad Farhan
Copper Contributor
Oct 07, 2018

Remove aspx extension from SharePoint pages

How can I remove aspx extension from SharePoint Pages? e.g. sample Url

http://wingtipserver:81/sites/test/Pages/Login.aspx to make it http://wingtipserver:81/sites/test/Pages/Login.

4 Replies

  • Rob Ellis's avatar
    Rob Ellis
    Bronze Contributor
    I'm not sure you can.

    If you set Login.aspx as the homepage for the test site, then you could use the Url http://wingtipserver:81/sites/test - which would load http://wingtipserver:81/sites/test/Pages/Login.aspx
    • Muhammad Farhan's avatar
      Muhammad Farhan
      Copper Contributor

      Actually I don't want to show the extension .aspx in the address bar when the page loads in the browser to the User.

      • Rob Ellis's avatar
        Rob Ellis
        Bronze Contributor
        To do that, you would need to do something like URL Rewriting - https://stackoverflow.com/questions/13725669/remove-aspx-extension-from-sharepoint-pages