When doing a website preview specifying a subfolder (eg. http://xxx.xxx.xxx.xxx/$sitepreview/domain.com/subfolder) without a document name, you are redirected to the actual domain instead. What can I do?
RESOLUTION
Plesk Sitepreview filter has nothing to do with it. It’s a feature of IIS itself.When you go to
http://xxx.xxx.xxx.xxx/$sitepreview/domain.com/subfolder IIS returns a `Location` to browser pointing to
http://domain.com/subfolder/ (because IIS has recognized it as a directory not a file).
Browser follows that URL. If domain.com is being resolved in DNS then you can get 403 error – directory listing denied or 404 – not found.
In this case Plesk redirecting filter is not applied at all. So one should explicitly specify `/` at the end of address string, such as http://xxx.xxx.xxx.xxx/$sitepreview/domain.com/subfolder/
not
http://xxx.xxx.xxx.xxx/$sitepreview/domain.com/subfolder
More information about this IIS behavior you can find at the following article:
http://support.microsoft.com/kb/298408/en-us
Keywords: site preview not working
Tags: plesk