• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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