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
Related
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.
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.
My web site was working fine via http with postname option in Permalink. Recently I have activated https (i.e. ssl) for my website. After that only home page is working, sub pages are not working. For default Permalink settings https is working. I have purchased wild card ssl certificates from godaddy, they have given me 2crt files. One starts with b811adugdfdfd.crt and another is gd_bundle-g2-g1.crt. I have uploaded both certificates in apache server and a key file. am I doing any mistake?? Website landing page is working with https but not subpages. Thanks in advance. Is the issue with SSL, or .htaceess or permalinks?
If your using "apache" Add directory Permission in SSL configuration of apache
//Directory /var/www/html/demoproject/public //
AllowOverride All
Require all granted
//Directory//
Here are a few quick checks that might help (If your SSL settings are all fine):
Make sure that under General Settings Page you have changed the site address URLs from http://domainname.com to https://domainname.com.
Try to check pages by forcing it to SSL with the help of a plugin WordPress HTTPS.
Write this code in your .htaccess file
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
We are having some issue with our relative path in wordpress.
Earlier our application was like http://www.skill-guru.com/skill .
So if we type the blog address as http://www.skill-guru.com/blog it would add a / at end and open it as
http://www.skill-guru.com/blog/
Now our application opens as root in domain http://www.skill-guru.com.
Our blog is opening as http://www.skill-guru.com/blog/ but not as http://www.skill-guru.com/blog.
I am not able to understand the reason.
because of this issue , search is also not working.
Can anyone please help me understand what has changed and how it can be fixed ?
I'm not sure about the underlying cause, but while you figure that out you may just want to redirect "blog" to "blog/" in your .htaccess file. I think this will do it...
RewriteCond %{REQUEST_URI} ^.*/blog$
RewriteRule ^(.+)$ $1/ [R=301,L]
I'm assuming that somewhere else in the .htaccess you have...
RewriteEngine On
RewriteBase /
In fact, you might find that in the process of changing you site someone nuked the existing .htaccess.
If I visit http://www.skill-guru.com/blog, I get the error:
HTTP Status 404 - /blog
type Status report
message /blog
description The requested resource
(/blog) is not available. Apache
Tomcat/6.0.16
This implies that there might be url-rewriting in place or server configuration does not allow you to strip the trailing backslash, you should consult with server support theam.
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]