-2

plateform : classic ASP

I have thousands of pages like that where filename querstring value changes.

www.mydomain.com/files.asp?filename=cisco

www.mydomain.com/files.asp?filename=oracle

www.mydomain.com/files.asp?filename=novell

www.mydomain.com/files.asp?filename=teradata

I want to show some friendly urls to online viewers so i think i will have to use web.config rewrite for it.

friendly like below

www.mydomain.com/files/cisco

www.mydomain.com/files/oracle

www.mydomain.com/files/novell

www.mydomain.com/files/teradata

Please tell me what i can do to achieve it.

BhandariS
  • 586
  • 7
  • 19
Ali
  • 11

1 Answers1

0

using URL_REWRITE_MODULE you can add rules to the web.config file on your root directory

example:

<rewrite>
<rules>

<rule name="Cisco">
<match url="files/cisco" />
<action type="Rewrite" url="files.asp?filename=cisco" />
</rule>

<!-- add as many rule as you please -->

</rules>
</rewrite>
yaqoob
  • 1,013
  • 1
  • 14
  • 37
  • 1
    you did not read my question carefully , i wrote "I have thousands of pages". – Ali Oct 03 '17 at 12:23
  • Sorry about that. here you go https://stackoverflow.com/a/6741094/2477599 rule #3 will work for you i guess :) – yaqoob Oct 05 '17 at 05:15