• Resolved thiswaystewie

    (@stupidnamegenerator)


    Okay, hey guys!

    My problem is simple as hell.
    I can access my website from… www.healthyforever.dk …and http://healthyforever.dk
    Which i dont like.
    I want to redirect both to:
    https://healthyforever.dk/

    How is this done? thank you! 😀
    btw.. tried using the wordpress setting:
    web address URL setting – did nothing.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there!

    The easiest way would be to redirect all HTTP connections to your HTTPS URL, in your .htaccess file. The .htaccess file can be found in your website’s base folder.

    Simply add these lines:

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

    If you’re not 100% confident in editing files over SFTP, I’d recommend contacting your host to help you out, as it is possible to stop your site from working, when editing your .htaccess file. Your host can also confirm that you web server is configured correctly to accept this configuration.

    Thread Starter thiswaystewie

    (@stupidnamegenerator)

    [ profanity redacted ] thank you!

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

The topic ‘HTTPS’ is closed to new replies.