Question : Domino Web Site Rule - Redirection

I want to redirect http://mail.MyDomain.com to http://www.OtherDomain.com/Folder/file.

Firstly I created a web site document and got that working. It points http://mail.MyDomain.com to the default "/homepage.nsf?Open". I then left it as it was and created a redirection "Web Site Rule" with the following: -
Incoming URL pattern: "mail.MyDomain.com"
Redirect to this URL: "http://www.OtherDomain.com/Folder/file"

Restarted http and it's still going to the "/homepage.nsf?Open".

I've tried removing the "Home URL" in the web site document as I don't want it to go to "/homepage.nsf?Open" anymore and a web page tells me that directory browsing isn't allowed. And I've tried removing the "Host names or addresses mapped to this site:", but then the web site document won't save.

I have got SSL running on the server for another domain name that the server manages if that could be causing a problem?

Also the site that I want to eventually redirect to is an HTTPS, but it's set to forward HTTP requests to HTTPS, so that should be a problem.

Answer : Domino Web Site Rule - Redirection

I think you should add an external redirection web site rule to the site document for mail.mydomain.com, with as follows:
incoming url pattern: *
Redirect to this URL: https://www.otherdomain.com/Folder/file

Starting the redirect URL with a protocol specifier makes it an external redirect which send back the new URL to the browser (as described in the Administrator Help).

If you had read the Administrator Help (Topic: Web Servers:The Domino Web Server:Hosting Web sites:Web Site rules and global Web settings), you would have seen that putting in mail.mydomain.com in the incoming pattern is not how you should specify the rule.

if entering https://www.otherdomain.com/Folder/file does not work, while there is actually such a file on the specified path, then look for a conflicting Web rule defined for otherdomain.com
Another possibility is Domino is running on a case sensitive OS or file system.
Random Solutions  
 
programming4us programming4us