I have a subdomain static.vivicheruti.com that points to vivicheruti.com/static.
I'm using Wordpress 5.2.1
I have a test page where I wrote this tag:
<img src="https://static.vivicheruti.com/Nube.png">
When I access the page, the image doesn´t show AND I get this "error"
Mixed Content: The page at 'https://vivicheruti.com/prueba/' was loaded over HTTPS, but requested an insecure image 'http://vivicheruti.com/static/Nube.png'. This content should also be served over HTTPS.
The URL is resolved OK but why the HTTP?
So I host my site on Siteground. I asked for help there but they say this is a Wordpress developer issue...
this https to http only happens in this case and I don´t know who is resolving this.
Any clues? Pls just ask for any extra information you need.
I have Cloudflare as part por Siteground's plan.
Updated --> FIXED (.htaccess)
#RewriteEngine On
#RewriteBase /
#RewriteCond %{HTTP_HOST} !=vivicheruti.com [NC]
#RewriteRule ^(.*)$ https://vivicheruti.com/$1 [R=301,L]
it said http instead of https in the last rule.
Related
I configured and enabled SSL and everything worked fine. But after enabling redirection from http to https I get the following error when opening the website:
Bad Request
Your browser sent a request that this server could not understand.
Reason: You’re speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.
I noticed this only happens when visiting the site by typing mywebsite.com on the browser search bar and when I visit it, the url shows up like this: http://mywebsite.com:443/
If I remove the :443 part it works properly and redirects to https.
How can I make it so it doesn't go to the wrong url when visiting from the browser? At the moment I've disabled the redirection to avoid my clients trying to come back to the site and getting that error.
Update:
Here's the config I used:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L]
Found here: https://docs.bitnami.com/bch/apps/wordpress/administration/force-https-apache/
When I change my website URL HTTP to https, we change in source code HTTP to https still we faced mixed content error in chrome console. this line is written in the console:-Mixed Content: The page at
https://example.com/ was loaded over HTTPS but requested an insecure font http://www.example.com/resource/home/new_resources/fonts/font-awesome/fontawesome-webfont.woff2?v=4.7.0. This request has been blocked; the content must be served over HTTPS.
My website is use Codeigniter framework,Apache 2.3,mysql
Add this code to yours .htaccess
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
then change your base_url like this https://www.yoursite.com
I am using wordpress. Actually recently I updated my website with SSL certificate in that everything is done. I have added redirect code in my .htaccess file.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
But only Homepage working perfect. It's automatically redirecting
http://www.lyricstake.com to https://www.lyricstake.com, but all other pages/post requests did not get redirecting. I want redirect my all post requests automatically, for example http://www.name.com/post/ to
https://www.name.com/post/.
You have to change all the URLs in your database from http to https. For doing this you can use this plugin : https://wordpress.org/plugins/search-and-replace/
Make sure to take a full backup of your database before using this plugin.
Actually, I didn't get SSL certificate till now, But when searching my website in search engines, its shows with https in URL. when clicking that link, it takes to error page since I didn't have SSL certificate.So I want to change that slug from https to HTTP. But I don't know where to change in my Cpanel. Is there anybody having a solution for my problem? please, let me come out from my problem.
you should add the following rewrite rule in your .htaccess file:
RewriteCond %{HTTP:X-Forwarded-Proto} =https
RewriteRule ^(.*)$ http:
If you want more refer here
I'm running into a rather annoying problem with my website.
I have a valid SSL certificate running on my domain but every time I try to manually access a certain page from my website it appears as non-ssl.
If I browse the pages starting from my homepage they all appear to be fine but if I go directly to a page the browser tells me that is not secured.
The odd thing is that this only happens when I type the link without "https/https" and www. Ex: "mywebsite.com/my-page".
If I'm entering "www" before the domain name or http/https it redirects to the secure version.
As a side note, I'm using WordPress as my CMS.
I would highly appreciate the help.
Thank you.
You can force https by adding the following to your htaccess file:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]