Title: Suggested patch
Last modified: August 22, 2016

---

# Suggested patch

 *  [johncc-fm](https://wordpress.org/support/users/johncc-fm/)
 * (@johncc-fm)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/suggested-patch/)
 * Hi-
 * Our site has the FORCE_SSL_ADMIN setting enabled, although I think this issue
   would affect any site that was accessible via HTTPS, in the that the plugin locks
   you out when going via HTTPS.
 * If you replace the line:-
 * `$strippedURL = str_replace('http://','',$siteurl);`
 * with:-
 * `$strippedURL = preg_replace('/https?:\/\//','',$siteurl);`
 * then it seems to work OK. Please can you integrate this back into the official
   plugin?
 * [https://wordpress.org/plugins/automatic-subdomains/](https://wordpress.org/plugins/automatic-subdomains/)

The topic ‘Suggested patch’ is closed to new replies.

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

 * 0 replies
 * 1 participant
 * Last reply from: [johncc-fm](https://wordpress.org/support/users/johncc-fm/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/suggested-patch/)
 * Status: not resolved