• steeped

    (@steeped)


    I am unable to get my WordPress website to initially load without www and with https:// instead of https://.

    I set the WordPress permalinks to “Post name”, so the url looks like “https://site.com/sample-post”. I also changed the “WordPress Address (URL)” and “Site Address (URL)” to “https://site.com”.

    I added “define( ‘FORCE_SSL_ADMIN’, true );” to the wp-config.php.

    Nothing works.

    One thing I did that sort of worked was adding this to .htaccess:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.yoursite.com/$1 [R,L]
    </IfModule>

    And it will initially load my website as https://www.site.com, then 3 seconds later change it to https://site.com. This seems like a weird hack that will get overwritten any time my WordPress Permalinks update.

    What am I missing? How do I have my website initially load normally with https://

    [Bumping will decrease your chances of getting help –
    https://codex.www.ads-software.com/Forum_Welcome#No_Bumping ]

Viewing 1 replies (of 1 total)
  • clickysteve

    (@clickysteve)

    Hey,

    This is just off the top of my head, so forgive me if it doesn’t work. For forcing SSL, what happens if you change the port from 80 to 443?

    Cheers,

Viewing 1 replies (of 1 total)
  • The topic ‘URL adding www when loading site. Would like https://site.com instead.’ is closed to new replies.