We have a website which has a Virtual Directory containing the secure portion of the website.
If users come to http://www.mydomain.com, they should get directed to default.aspx of the main site, but if they go to https://www.mydomain.com, they should go to default.aspx of the virtual directory.
The default page for the main site works fine, as does the secure page if I navigate to it using the full name, however I can’t figure out how to set the default page for https traffic that doesn’t specify a specific page.
- http://www.mydomain.com – Works
- https://www.mydomain.com – Page Not Found
- https://www.mydomain.com/myvirtualdirectory – Page Not Found
- https://www.mydomain.com/myvirtualdirectory/default.aspx – Works
What do I need to do to make links 2 and 3 load the default page show in 4?
My website is running on IIS 6.0 in Windows Server 2003
I finally figured out my issue. In my case, it turns out the problem was an old URL Rewrite rule I wasn’t aware of that was transferring all https traffic that didn’t have a file name specified to
index.php, which of course didn’t exist.I found this out by viewing the IIS error logs, which was telling me the 404 was being caused by
index.php