How we can Remove sharepoint server 2019 Website URL extension .aspx

Arunachalam J 85 Reputation points
2023-12-14T06:56:28.2133333+00:00

In our website we have an URL link - https://<domain-name>/SitePages/Home.aspx

So now we need to remove the .aspx for the security purpose,

Please help out the following I have added, Thanks in Advance.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,685 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,608 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ling Zhou_MSFT 17,060 Reputation points Microsoft Vendor
    2023-12-15T02:03:17.5+00:00

    Hi @Arunachalam J,

    Thank you for posting in this community.

    There is no out-of-the-box way to remove the .aspx suffix from URLs in SharePoint Server 2019.

    However, we can rewrite URLs with the ASP.NET and IIS URL Rewrite module.

    1.URL Rewriting in ASP.NET

    2.URL Rewriting in IIS URL Rewrite module:

    IIS7 URL Rewrite module

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link. 

    SharePoint with IIS URL Rewrite 2.0

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link. 


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.