Title: www vs. non-www vs. http://www vs. https://www
Last modified: August 31, 2016

---

# www vs. non-www vs. http://www vs. https://www

 *  Resolved [spaciousmind](https://wordpress.org/support/users/spaciousmind/)
 * (@spaciousmind)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/www-vs-non-www-vs-httpwww-vs-httpswww/)
 * Hi there Frank,
 * I just installed Autoptimize on a site that has an SSL and we’re using a plugin
   to force [https://www.domain.com](https://www.domain.com) if someone enters any
   of these:
 * [http://www.domain.com](http://www.domain.com),
    [http://www.domain.com](http://www.domain.com),
   [http://domain.com](http://domain.com) or just domain.com
 * After installing Autoptimize, when using anything other than [https://www.domain.com](https://www.domain.com)
   kills the site and just displays a “<” on an otherwise white/empty page.
 * Any ideas why this might happen? Autoptimize was helping with our performance
   scores but after trying toggling some of the settings to see if it would clear
   up, I eventually had to disable it due to the above. I’d like to re-enable it
   though if the issue can be solved.
 * Thanks for any suggestions you may have.
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/www-vs-non-www-vs-httpwww-vs-httpswww/#post-6980269)
 * no idea really … what plugin are you using for those redirects? is this the case
   if you do only HTML optimization (or only CSS or only JS)? and did you try setting
   your CDN to [https://www.domain.com/](https://www.domain.com/) ?
 * frank
 *  Thread Starter [spaciousmind](https://wordpress.org/support/users/spaciousmind/)
 * (@spaciousmind)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/www-vs-non-www-vs-httpwww-vs-httpswww/#post-6980298)
 * We’re using “WP Force SSL” plugin.
 * I seem to have fixed it by asking my host and adding this to my htaccess:
 * RewriteEngine On
    RewriteCond %{HTTPS} off RewriteRule (.*) [https://%](https://%){
   HTTP_HOST}%{REQUEST_URI}
 * Thanks for the quick reply… great plugin!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘www vs. non-www vs. http://www vs. https://www’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [spaciousmind](https://wordpress.org/support/users/spaciousmind/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/www-vs-non-www-vs-httpwww-vs-httpswww/#post-6980298)
 * Status: resolved