Multisite adding https to all sites created

Why is multisite adding https to all sites that I create? My main domain does not use https, but after every site is created, I have to manually change the site from https:// to http://

  • Nastia

    Hello David

    I hope you are doing well today!

    Please have a look inside the wp-config.php for the following line:
    define('FORCE_SSL_ADMIN', true);
    If it's set to true, please replace it with the following :
    define('FORCE_SSL_ADMIN', false);

    If this is not the case, please post here content from the .htaccess file, so I can have a closer look.

    You can find this file inside your WordPress directory.

    Have a nice day and take care!

    Cheers,
    Nastia

  • David

    There is no force SSL line in the wp-config.php file.

    The .htaccess file is:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^adefiniteplan.com/blog$
    RewriteRule (.*)$ http://adefiniteplan.com/$1 [R=301,L]

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    # Use PHPBETA Single php.ini as default
    AddHandler application/x-httpd-phpbetas .php
    # Changed PHP handler from application/x-httpd-php54s to application/x-httpd-phpbetas on Thu Dec 17 21:52:07 MST 2015.
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^adefiniteplan\.net$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.adefiniteplan\.net$
    RewriteRule ^/?$ "http\:\/\/adefiniteplan\.com\/" [R=301,L]

    RewriteCond %{HTTP_HOST} ^www\.adefiniteplan\.com$
    RewriteRule ^/?$ "http\:\/\/adefiniteplan\.com\/" [R=301,L]

    ErrorDocument 404 http://adefiniteplan.com

    <IfModule mod_deflate.c>
    <IfModule mod_headers.c>
    Header append Vary User-Agent env=!dont-vary
    </IfModule>
    AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
    <IfModule mod_mime.c>
    # DEFLATE by extension
    AddOutputFilter DEFLATE js css htm html xml
    </IfModule>
    </IfModule>
    # BEGIN W3TC Browser
    <IfModule deflate_module>
    <IfModule filter_module>
    AddOutputFilterByType DEFLATE text/plain text/html
    AddOutputFilterByType DEFLATE text/xml application/xml application/xhtml+xml application/xml-dtd
    AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml image/svg+xml
    AddOutputFilterByType DEFLATE text/css text/javascript application/javascript application/x-javascript
    AddOutputFilterByType DEFLATE font/otf font/opentype application/font-otf application/x-font-otf
    AddOutputFilterByType DEFLATE font/ttf font/truetype application/font-ttf application/x-font-ttf
    </IfModule>
    </IfModule>

    # BEGIN WPSuperCache
    # END WPSuperCache

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress
    #Hummingbird Expiry
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault A0

    <FilesMatch "\.(txt|xml|js)$">
    ExpiresDefault A691200
    </FilesMatch>

    <FilesMatch "\.(css)$">
    ExpiresDefault A691200
    </FilesMatch>

    <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac)$">
    ExpiresDefault A691200
    </FilesMatch>

    <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
    ExpiresDefault A691200
    </FilesMatch>
    </IfModule>

    <IfModule !mod_expires.c>
    <IfModule mod_headers.c>

    <FilesMatch "\.(txt|xml|js)$">
    Header set Cache-Control "max-age=691200"
    </FilesMatch>

    <FilesMatch "\.(css)$">
    Header set Cache-Control "max-age=691200"
    </FilesMatch>

    <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac)$">
    Header set Cache-Control "max-age=691200"
    </FilesMatch>

    <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
    Header set Cache-Control "max-age=691200"
    </FilesMatch>
    </IfModule>
    </IfModule>

  • Nastia

    Hello David

    I hope this answer finds you well!

    There is nothing unusual in your .htaccess file.

    To exclude the possibility that there is a plugin that forcing HTTPS to a subsite, please deactivate all the plugins and create a subsite. If the subsite created with the HTTP protocol, activate one plugin at the time ton find the one that is causing this.

    Do you use security plugins? Some security plugins may force https to sites.

    Please advise,

    Cheers,
    Nastia

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.