WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] http instead of https when adding a new site (11 posts)

  1. shoylman
    Member
    Posted 1 year ago #

    Hi,

    I have my multisite set up with https but when I add a new site, the domain begins with https but the siteurl begins with http. How can I make the siteurl begin with https without having to go into the database and manually changing it?

    Thanks,

  2. You may need to use a plugin like http://wordpress.org/extend/plugins/wordpress-https/

  3. shoylman
    Member
    Posted 1 year ago #

    I have tried that plugin but it doesn't change it.

    Additional information: Before turning it into a multisite, I set the WordPress Address (URL) and Site Address (URL) to https. I'm using sub-directories. After adding a site, I click on sites/sitename/edit and under the info tab I see Domain https:// and when I click on the settings tab I see http:// in Siteurl, Home and File Upload Url.

  4. Try the other ones. Or put in a .htaccess redirect for everything http to go to https. I'm not sure it's a bug, since really changing it in the URL sections isn't the right away about it :/

  5. shoylman
    Member
    Posted 1 year ago #

    I've tried htaccess redirect and also put define('WP_SITEURL' in wp-config and it didn't change.

    Question: what is the "right way about it"?

  6. The plugin, really.

    What .htaccess redirect did you use that didn't work?

  7. shoylman
    Member
    Posted 1 year ago #

    I used the following:

    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

  8. Hmm. Try this code : http://stackoverflow.com/questions/9675623/force-https-on-wordpress-multisite

    Put it in an mu-plugins file.

  9. shoylman
    Member
    Posted 1 year ago #

    I put the code in a mu-plugins file. No change.

    I'm starting to think that wordpress multisite fills in the http:// by default when adding a site and making changes externally via htaccess or otherwise won't affect it.

    I noticed:
    At the top of the add site page is: Site Address mysite.com/

    You can't change/add https to it and it is there for reference but it is what got me thinking about the above.

  10. Yes, that's true. Which is why a plugin is supposed to filter that for you ;)

    Kind of like how domain mapping works.

  11. shoylman
    Member
    Posted 1 year ago #

    Understood.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.