0

My question is simple if i have multiple directories with pages like -

/admin/adminlogin.aspx

/user/userlogin.aspx

/default.aspx

i want to set default page for each directory how ever i can set default doc for root in web.config but is there any way to assign separate for each dir ? i didn't find it anywhere.

1 Answer 1

-1

You can easily do it from IIS. Go to IIS> your websit, set default document for each directories manually. it will add different config files automatically.

Otherwise if you are using single config the you can try <location> tag:

Click here fro more references!

Sign up to request clarification or add additional context in comments.

4 Comments

can i do it in web.config somehow?
Have you tried the <location> tags as shown here: stackoverflow.com/questions/10045625/…
you need to google it , you will find many answer to your questions, see: stackoverflow.com/questions/1053696/…
it says path should be relative / virtual? what does it mean?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.