HTTPS Redirect
-
Hello everyone, so i host my website with godaddy and bought a SSL certificate as well as a domain certificate, anyways, i was able to install the ssl on my website and is active, but i can’t manage to activate it on the URL bar, because is still opens my website using “HTTP” and i need to redirect it to “HTTPS” so i found around that you need to find the we.config file and edit it, i think i found the file but is called .htaccess and it has this on the inside:
# 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> # END WordPress
and i found online that you need to add this code to redirect http to https:
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
i am not really a developer, i know some c, arduino code, and just started to learn xhtml, so i wanted to make sure i dont screw up my .config file, so how can i add the suggested code to my existing .config file to succesfully redirect my website to “https”? also, when i manually type in my website address but using https i can see the ssl certificate on the address bar but it says the connection is not secure because it contains insecure elements, im guessing because all of the content and images has been uploaded using http, do i need to manually change all of my images, icons, etc using https to be able to change that status to secure? in advance, thank you!
- The topic ‘HTTPS Redirect’ is closed to new replies.