-1

On a windows server. I want a user to see the page www.example.org/placrun when they go to www.example.org/placestorun, but I want the url to be www.example.org/placestorun. Essential I need the url changed. Any help on this would be great

sjw0525
  • 329
  • 2
  • 17

1 Answers1

0

The name of this feature is "Rewrite". You need to add this rewrite rule to your web.config file:

<rule name="Rewrite placestorun">
  <match url="^placestorun$"/>
  <action type="Rewrite" url="/placrun"/>
</rule>

The regexp ^placestorun$ will match only if you visit URL www.example.org/placestorun and <action type="Rewrite" url="/placrun"/> define a result that you want to rewrite it to placrun URL

Victor Leontyev
  • 8,488
  • 2
  • 16
  • 36