Hi,
I have been trying to get the right config going here. What would do you if you have a website that has two SSL certs in the bindings. So here are my 'requirements'..
1. All requests to http://externalname.net.au will be redirected to https://www.externalname.net.au
2. All requests to www.externalname.net.au will be redirected to https://www.externalname.net.au
3. All requests to http://internalname.somename.local will be redirected to https://internalname.somename.local (without the www).
(I can get any two of them working no issues but not all three of them working together).
Please note that: - All these bindings (443 and 80) are set up on one website in IIS. Cant be split up into two IIS websites (since its sharing the same folder). - internalname.somename.local should not be redirected / rewritten with a www.
I have tried several combinations and different rules using the information on sites such as http://weblogs.asp.net/owscott/archive/2009/11/30/iis-url-rewrite-redirect-multiple-domain-names-to-one.aspx and http://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks .... but no luck.
Any help would be appreciated!
1. All requests to http://externalname.net.au will be redirected to https://www.externalname.net.au
2. All requests to www.externalname.net.au will be redirected to https://www.externalname.net.au
3. All requests to http://internalname.somename.local will be redirected to https://internalname.somename.local (without the www).
(I can get any two of them working no issues but not all three of them working together).
Please note that: - All these bindings (443 and 80) are set up on one website in IIS. Cant be split up into two IIS websites (since its sharing the same folder). - internalname.somename.local should not be redirected / rewritten with a www.
I have tried several combinations and different rules using the information on sites such as http://weblogs.asp.net/owscott/archive/2009/11/30/iis-url-rewrite-redirect-multiple-domain-names-to-one.aspx and http://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks .... but no luck.
Any help would be appreciated!