• I’ve looked through the forums and googled quite a bit but can’t find a definitive answer on domain mapping and using a wildcard SSL cert. I’d like visitors to view a site using it’s mapped domain but if a user is forced over to SSL, those pages should be on the subdomain, not the mapped domain.

    Does your plugin support this setup? Any advice would be appreciated.

    Thanks!

    https://www.ads-software.com/plugins/wordpress-mu-domain-mapping/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ron Rennick

    (@wpmuguru)

    You would need to do the SSL redirects in your web server config.

    max

    (@seoactivist)

    If you can understand below, there is some useful stuff in there for your need…
    If you can’t understand below, then don’t use it!

    `<IfModule mod_rewrite.c>
    RewriteEngine On
    Options All -Indexes
    #BEGIN Remove ‘www.’ from all Requests
    RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
    RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]
    #END Remove ‘www.’ from all Requests
    #BEGIN Frontend Address Control for Network Subsites with Mapped .Com
    RewriteCond %{REQUEST_URI} !^/?wp-(admin|content|includes|login) [NC]
    RewriteCond %{HTTP_HOST} ([^.]+)-secure-1\.example\.tld$ [NC]
    RewriteCond %{QUERY_STRING} !preview=true [NC]
    RewriteRule ^ https://%1.com%{REQUEST_URI} [R=301,L]
    #END Frontend Address Control for Network Subsites with Mapped .Com
    #BEGIN Frontend Address Control for Network Subsites with Mapped .Net
    RewriteCond %{REQUEST_URI} !^/?wp-(admin|content|includes|login) [NC]
    RewriteCond %{HTTP_HOST} ([^.]+)-secure-2\.example\.tld$ [NC]
    RewriteCond %{QUERY_STRING} !preview=true [NC]
    RewriteRule ^ https://%1.net%{REQUEST_URI} [R=301,L]
    #END Frontend Address Control for Network Subsites with Mapped .Net
    </IfModule>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirecting to subdomains for SSL’ is closed to new replies.