Click here to Skip to main content
15,896,730 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have a website but i dont want it to show .html at the end like [Spam link removed]

At least if it shows [spam link removed] without .html
Posted
Updated 10-Aug-14 23:36pm
v2
Comments
Thanks7872 11-Aug-14 5:36am    
Why to visit that links? We dont need it. Explain here whatever you want to. It will be considered spam.

You can refer this link

how-to-remove-html-from-url[^]

Hope it will help...
 
Share this answer
 
You can write code like this in webconfig


XML
<rewrite>
      <rules>
        <!--<rule name="json to aspx" stopProcessing="true">
          <match url="(.*)\.json$" />
          <action type="Rewrite" url="{R:1}.aspx" />
        </rule>-->

        <rule name="json to ashx" stopProcessing="true">
          <match url="(.*)\.json$" />
          <action type="Rewrite" url="{R:1}.ashx" />
        </rule>
      </rules>



    </rewrite>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900