Title: [Plugin: Mobile Domain] Redirection not working on https only sites
Last modified: August 20, 2016

---

# [Plugin: Mobile Domain] Redirection not working on https only sites

 *  [Cyzor](https://wordpress.org/support/users/cyzor/)
 * (@cyzor)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-mobile-domain-redirection-not-working-on-https-only-sites/)
 * Hey I have a problem, the redirection function in the plugin stopped working 
   when I switched my site to SSL only. The plugin was working excellent. Now the
   mobile domain (m.mydomain.com) works and shows me the mobile theme but mobile
   browsers aren’t redirected automatically.
 * This is the relevant information in my virtual host file from Apache (on pastebin
   sorry for breaking the Forum rules): [http://pastebin.com/UyuWarzh](http://pastebin.com/UyuWarzh)
 * [http://wordpress.org/extend/plugins/mobile-domain/](http://wordpress.org/extend/plugins/mobile-domain/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Cyzor](https://wordpress.org/support/users/cyzor/)
 * (@cyzor)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-mobile-domain-redirection-not-working-on-https-only-sites/#post-2437345)
 * Ok, I got it working again by changing http:// on line 14 to https:// in mobile-
   domain.php. I also changed it on line 16 and 40 but it started working by only
   changing line 16. It would be nice if the plugin automatically used the correct
   url scheme and would use https if the home url was set to [https://mydomain.com](https://mydomain.com)
 * [http://codex.wordpress.org/Function_Reference/home_url](http://codex.wordpress.org/Function_Reference/home_url)
   
   [http://codex.wordpress.org/Function_Reference/is_ssl](http://codex.wordpress.org/Function_Reference/is_ssl)

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Mobile Domain] Redirection not working on https only sites’ 
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mobile-domain.svg)
 * [Mobile Domain](https://wordpress.org/plugins/mobile-domain/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mobile-domain/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mobile-domain/)
 * [Active Topics](https://wordpress.org/support/plugin/mobile-domain/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mobile-domain/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mobile-domain/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Cyzor](https://wordpress.org/support/users/cyzor/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-mobile-domain-redirection-not-working-on-https-only-sites/#post-2437345)
 * Status: not resolved