SSL
-
Hi,
I am having issues with the below site sometimes:
https://swiftcarhire.comOn certain occasion it is showing as NOT SECURE, whereas it has an SSL Certificate installed, this does not happen all the time but occassionally. I have checked the website on whynopadlock.com and it is showing as perfect.
Any ideas pls?
Regards,
MatthewThe page I need help with: [log in to see the link]
-
Showing no errors on this side either. Console shows a perfectly secure SSL site. Next time you encounter it, write down the page and instance of it. Take a screenshot, etc. and look at console to see where it may be coming from.
-
This reply was modified 7 years ago by
Stef.
I have just received another client stating that it is not secure, attached is his screenshot:
Screenshotokay… i have just noticed that on this particular page the http does not resolve to https:
booking formAny ideas why pls?
It’s the way you’re calling to fontawesome and a font I see.
thanks for your kind reply, any ideas how to fix it pls?
Look somewhere in your theme of how they call to those files. Check functions file, header, footer.
checked those files and haven’t found anything linking to fontawesome but yet again i’m not a developer.
Could it be that the below is affecting the way it resolves?
There you go!
do they need to be both https?
i did set them up both as https
In my .htaccess file I have the below code:
# 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 # BEGIN LiteSpeed <IfModule Litespeed> SetEnv noabort 1 </IfModule> # END LiteSpeed # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} swiftcarhire\.com [NC] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://swiftcarhire.com/$1 [R,L] </IfModule> # END WordPressYes. But know that you may also have to add a redirect in your htaccess as well.
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </IfModule>Since I don’t know you’re entire make up I’m just throwing that out there.
done but problem is still persisting, my htaccess is looking like this now:
# 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 # BEGIN LiteSpeed <IfModule Litespeed> SetEnv noabort 1 </IfModule> # END LiteSpeed # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} swiftcarhire\.com [NC] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://swiftcarhire.com/$1 [R,L] </IfModule> # END WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </IfModule>It should look like this
# 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 # BEGIN LiteSpeed <IfModule Litespeed> SetEnv noabort 1 </IfModule> # END LiteSpeed #301 from HTTP to HTTPS <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </IfModule> #END 301thanks for your reply, i think that i have managed to make it work with this code just before you replied, can you kindly check if it is ok, if not i will use your code:
# 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 # BEGIN LiteSpeed <IfModule Litespeed> SetEnv noabort 1 </IfModule> # END LiteSpeed # BEGIN GD-SSL <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_USER_AGENT} ^(.+)$ RewriteCond %{SERVER_NAME} ^swiftcarhire\.com$ [OR] RewriteCond %{SERVER_NAME} ^www\.swiftcarhire\.com$ RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] Header add Strict-Transport-Security "max-age=300" </IfModule> # END GD-SSL # 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 # BEGIN WordPress RewriteEngine On RewriteCond %{HTTP_HOST} swiftcarhire\.com [NC] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://swiftcarhire.com/$1 [R,L] # END WordPressYes, but don’t be using WORDPRESS for your comments 😉
Comment correctly related to what it is your adding. In case someone else comes after you. You can’t have WORDPRESS for every comment line.
# This is # end this #security mod start #security mod endso on
-
This reply was modified 7 years ago by
Stef.
-
This reply was modified 7 years ago by
The topic ‘SSL’ is closed to new replies.