Product:
Search Type:

[FIX] Sitepreview redirects to the domain itself

Article ID: 1167 
Last Review: Aug,22 2007
APPLIES TO:
  • Plesk 7.5.x for Windows
  • Plesk 7.6.x for Windows

SYMPTOMS

When going to a website preview specifying a subfolder (eg. http://xxx.xxx.xxx.xxx/$sitepreview/domain.com/subfolder) without a document name, the users are redirected to the actual domain itself.

RESOLUTION

It’s the peculiarity of IIS itself and sitepreview filter is likely to be working correctly:

http://xxx.xxx.xxx.xxx/$sitepreview/domain.com/subfolder
IIS returns a `Location` to browser pointing to ttp://domain.com/subfolder/ (because IIS has recognized it as a directory not a file). and browser follows that  URL. If domain.com is resolved in DNS then you are likely to  a get 403 error - directory listing denied or 404 - not found.

In this case the Plesk redirection filter is not applied at all. So one should explicitly specify `/` at the end of the address string, such as http://xxx.xxx.xxx.xxx/$sitepreview/domain.com/subfolder/

not

http://xxx.xxx.xxx.xxx/$sitepreview/domain.com/subfolder

Additional information

More information about this IIS behavior can be found here:

http://support.microsoft.com/kb/298408/en-us
Keywords: site preview not working

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields