Reputation: 1091
currently I have setup my page in IIS. It can be accessed over the IP address of the server only (so something like: "127.0.0.1"). What I want to do is move the page to a sub-directory, so that if someone uses the IP addess only, he won't get to the page (404 error). I would like the page to be accessible by using something like this: "127.0.0.1/someName". This should let the user access the default page, as it is now. Is this possible? Thanks!
Upvotes: 3
Views: 5220
Reputation: 32693
You are looking for Virtual Directories.
Right click the site, and click Add Virtual Directory. Give it a name (this will be the sub directory name).
Then, just make sure your virtual directory has the correct default page configured. For example, if MyPage.aspx should be the default, then put it in as the default document.
Upvotes: 3