• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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