This topic has 3 replies, 2 voices, and was last updated 11 years by Catalin.

  • Author
  • #30878
     wisinyyandel7
    Participant

    Hi @Sqadmin and @Abe
    I got a SSL certificate from GoDaddy. It is actived but they say that I have to add some codes in .htacces file. (My hosting account is LINUX) Can you please help to modify this file? I appreciate it. Thank you so much.

    If you have a secure certificate (SSL) on your website, you can automatically redirect visitors to the secured (HTTPS) version of your website to make sure your communications are encrypted.

    How you do that depends on what type of hosting account you have:

    #30879
     wisinyyandel7
    Participant

    This is my .htaccess file:

    # 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>

    And this is the one that GoDaddy send me to fix it or add it into mine, but I am not too sure which ones should I add into my file. How should be my new .htaccess file?
    Thank you so much

    You’ll need to either create or modify your hosting account’s .htaccess file. If you need to create one, you can use your control panel’s file manager (more info).

    Add the following code to the .htaccess file:
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{SERVER_PORT} !=443
    RewriteRule ^ https://[your domain name]%{REQUEST_URI} [R,L]

    Where [your domain name] is your website’s domain name.

    You can also redirect specific folders off of your domain name by replacing the last line of the code above with:
    RewriteRule ^ https://[your domain name]/[directory name]%{REQUEST_URI} [R,L]

    Where [directory name] is the directory you want to use.

    Important: If you have existing code in your .htacess, add this above where there are already rules with a similar starting prefix.

    #30880
     wisinyyandel7
    Participant

    Ps. My SSL certificate is for whole website.
    Thanks

    #31073
     Catalin
    Moderator

    Hello,

    Here are some good info about your request:

    https://wordpress.org/support/topic/redirecting-http-to-https-problems

    Thank you,
    Catalin

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?