-
Author
-
October 6, 2014 at 22:16 #30878
wisinyyandel7
ParticipantHi @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:
October 6, 2014 at 22:20 #30879wisinyyandel7
ParticipantThis 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 muchYou’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.
October 6, 2014 at 22:31 #30880wisinyyandel7
ParticipantPs. My SSL certificate is for whole website.
ThanksOctober 8, 2014 at 14:43 #31073Catalin
ModeratorHello,
Here are some good info about your request:
https://wordpress.org/support/topic/redirecting-http-to-https-problems
Thank you,
CatalinHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.