• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Question Redirects/Rewrites

Lanky Doodle

New Pleskian
Hey,

Our company website is hosted for us, but we have other on-premise services like Exchange ActiveSync for corporate email on phones etc.

In trying to get Exchange autodiscover working properly I've setup redirects so domain.com/autodiscover/autodiscover.xml goes to https://autodiscover.domain.com/autodiscover/autodiscover.xml.

Although this does work, annoyingly Gmail prompts a warning about the redirect. As domain.com for us points to www.domain.com, we actually get 2 warnings:

domain.com to www.domain.com
www.domain.com to autodiscover.domain.com

How do I setup the redirect/rewrite so it is masked? This is what I've done:

#301 Redirect 14-11-2017
RewriteRule ^autodiscover/autodiscover.xml$ https://autodiscover.domain.com/autodiscover/autodiscover.xml [R=301,L,NC]

Thanks.
 
Back
Top