How to solve the Routing issue in ASP

Posted by Manicse under ASP.NET on 12/26/2016 | Points: 10 | Views : 232 | Status : [Member] | Replies : 1
Hi,

I am working on classic asp project. I want to access page in directory by only typing directory and get rid off page from last.

ex. Currently: www.website.com/test/a123.asp
Here, "demo" is directory and "efg.asp" is classic asp page.

I want to access that "a123.asp" page by only typing following

www.Website.com/test

Something like Asp.Net MVC routing.

Is it possible ?

Mani.R


Responses

Posted by: A2H on: 1/18/2017 [Member] [MVP] Silver | Points: 25

Up
0
Down
We can do the virtual directory routing for the home page.This needs to be configured in IIS ( Internet Information Services).
We need to set the default document for the virtual directory.


Please refer the below link for steps to set the default document for virtual directory in IIS
https://www.iis.net/configreference/system.webserver/defaultdocument?showTreeNavigation=true



Thanks,
A2H
My Blog

Manicse, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response