Solved

Disable virtual directory browsing when pointing the site to the VD

Posted on 2010-09-02
2
736 Views
Last Modified: 2012-05-10
In IIS 7/Server 2008 is there a way of stopping a user browsing a virtual directory when the site at the level above is pointing to it.

For example;
When I add a Virtual directory to a server its URL would be;
http://HOSTNAME/VIRTUALDIRECTORYNAME/default.aspx

But by changing the site to point to the physical folder of the virtual directory users are able to browse the site without entering the virtual directory name.
http://HOSTNAME/default.aspx

When I enable the latter by changing the site’s physical path is there a way of disabling browsing via the virtual directory name. Or driving users to the new http://HOSTNAME/default.aspx URL?
0
Comment
Question by:DavidiusK
2 Comments
 
LVL 1

Expert Comment

by:Noggin182
ID: 33588172
If I understand you right you want to force users that are still trying to access /vdir/file to be redirected to /file?

If so remove the virtual directory and create a real directory with the same name. Then you can just change the properties of your virtual directory so it send back a redirect instead. From the IIS manager select your folder and then open "HTTP Redirect", it should be straight forward from this point on.
0
 

Accepted Solution

by:
DavidiusK earned 0 total points
ID: 33840602
I figured it out an appication can be set at the website level.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now