Skip to main content

Questions tagged [https]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
650 views

Sprig "Load more" not loading over https

I've recently added an SSL to the site I'm working on, and it seems to have broken my "load more" buttons via sprig. When I click the button now, I get Blocked loading mixed active content “...
Justin Kendall's user avatar
0 votes
0 answers
42 views

404 on all pages but home after switch to https

I have an SSL certificate installed on the server. Now I want to switch to https:// instead of http:// as the site is showing as "not secure". I've updated the siteUrl and baseUrl in config/general....
User543's user avatar
1 vote
1 answer
335 views

SSL now CP unknown errors

I have a Craft 3 site that's been running on a production server. Recently we switched over to https but this has caused issues in the CP (multiple 'An unknown error occurred' red flags, can't view ...
Dr_Codswallop's user avatar
1 vote
1 answer
300 views

Can't Get Past Control Panel Login. Keeps Redirecting Back to Login Page

I followed this guide to move my local hosting from WAMP, which has been giving me a bunch of 500 errors since switching to Craft 3, to Local By Flywheel. After getting everything configured, I can ...
dpayne's user avatar
  • 659
1 vote
1 answer
324 views

Forcing a / with .htaccess

After redirecting a website to https environment I had the difficulty that .php/ was added to the url which resulted in double content. I have been able to get past this mistake but now I need to ...
JR d H's user avatar
  • 11
2 votes
1 answer
2k views

Craft 3 Admin not loading cpresources files over HTTPS

I have a Craft 3 install on my client's Windows machine running Apache, PHP and MySQL. We purchased an SSL certificate but the main Admin login page (on SSL) keeps loading cpresources assets over ...
biko's user avatar
  • 670
1 vote
1 answer
649 views

Force redirect from HTTP to HTTPS via htaccess with multisite installation

I'm using Craft CMS 3 multisite installation with more than 20 website based on subdomains. There are websites: website.com one.website.com two.website.com with identical url paths but different ...
Nikolay Bronskiy's user avatar
1 vote
2 answers
608 views

transfer to HTTPS

I added support for https for the domain, But only the main page works How to make Сraft make the default site address with https instead of http? Upd: Craft 3 on Vestacp and centos. Only the base ...
Vitaliy  Badalov's user avatar
3 votes
2 answers
2k views

From a Twig template, how to retrieve the content of a HTTP header in the current request?

I would like to detect if a header in the current request is present and obtain its value, directly within a Twig template. I know that craft.app.request gives access to a few variables like isAjax ...
kant312's user avatar
  • 496
1 vote
3 answers
673 views

.dev local development

I'm getting SSL errors when developing using .dev as a domain name. I believe it's because browsers are now automatically forwarding these to HTTPS://. Any ideas how to get around this with Craft? I ...
Ben's user avatar
  • 11
2 votes
2 answers
5k views

Login - Bad Request: The CSRF token could not be verified

I have just deployed an existing site to a new server. As the DNS is not pointing there yet, I have simply edited my /etc/hosts file on my Mac to point to the IP address for testing. Whilst checking ...
Adam Menczykowski's user avatar
1 vote
1 answer
275 views

HTTPs Site - Redirects Go to HTTP First & Then HTTPs

So I've updated the site URL in my general.php as follows: 'siteUrl' => "https://" . $_SERVER['HTTP_HOST'], I also have our web server making sure everything goes to https://www.example.com. ...
dpayne's user avatar
  • 659
0 votes
0 answers
85 views

https problem with multi environment config

I'm using Craft-Multi-Environment on a clients site and have it all working happily with standard http. However, we want the site to run on https to be more secure, but the server company can't seem ...
mention79's user avatar
  • 543
4 votes
3 answers
2k views

Craft Admin assets do not load over https (Apache & Cloudflare)

staging.website.com loads perfectly over https. However, https admin pages immediately break because the assets are trying to load over http. If I navigate to the https asset directly, it loads fine. ...
Rjoss's user avatar
  • 136
2 votes
1 answer
769 views

Problem with Site Running Both HTTP & HTTPs

So we're trying to set-up a site to run both HTTP & HTTPs version in parallel for SEO auditing before making the full switch to HTTPs. We followed Ben's answer on this SE question to make it work: ...
dpayne's user avatar
  • 659
2 votes
1 answer
1k views

Read POSTed JSON data from the request body

Is there a way with the request service to read POSTed JSON from php://input?
Fred Carlsen's user avatar
  • 2,997
0 votes
1 answer
479 views

CloudFlare Shared SSL certificate forbids CraftCMS control panel sign in

I am running a site using CraftCMS and have a shared CloudFlare SSL certificate in place. Based on my understanding, the content source (i.e. my website) is not safe, while the content delivered to ...
Harvey Eckstein's user avatar
1 vote
1 answer
211 views

Page redirects permanently to itself [closed]

I am posting this in case anyone will encounter this problem. I also reported a potential bug about that. (see here: https://github.com/craftcms/cms/issues) When you start to suddenly get redirection ...
Craze Developer's user avatar
1 vote
2 answers
4k views

When redirecting to HTTPS from www, index.php appears in URL

I have a redirect setup for www, it successfully redirects to https:// but it includes /index.php?p= in the URL. I'm not convinced by htaccess file is configured correctly. Here's my htaccess file: ...
JackO's user avatar
  • 133
0 votes
1 answer
634 views

Control panel switches to HTTPS protocol on its own

On one Craft CMS site I have, all control panel URLs I call over HTTP are rewritten to HTTPS. E.g. the login page, as well as all its assets, are being served via https://www.mywebsite.com/admin/…. ...
Avant la lettre's user avatar
2 votes
1 answer
1k views

cp login over https gives error

I've set up a site with SSL, and finally got everything to load over https as well in the CP. But now I'm getting an error when trying to log in. When I look at the logs it says that the username ...
peirix's user avatar
  • 431
1 vote
1 answer
926 views

Load a page via HTTP and make an AJAX request via HTTPS afterwards using CSRF-Token

I have the following scenario: A page is loaded via HTTP The user fills out a form and submits its contents via HTTPS The craft CSRF prevention is enabled, so the previousy generated CSRF-Token is ...
Clemens Sum's user avatar
2 votes
2 answers
242 views

Cache HTTP and HTTPS seperately using {% cache %}

we have a page that can be accessed both via regular HTTP and HTTPS. We now stumbled across an issue that if a page has been loaded via HTTP (and the content has thus been cached) and another user ...
Clemens Sum's user avatar
11 votes
3 answers
2k views

How to set up {siteUrl} to work with both http and https

I'm looking for a way to set up the general.php file's siteUrl to be able to use both http and https. Only the front-end login would be using the https. This is how I currently have it set up: '...
Kyle's user avatar
  • 367
2 votes
2 answers
4k views

How can I redirect HTTP to HTTPS with a local self assigned SSL certificate in my .htaccess?

I'm having trouble redirecting HTTP to HTTPS with a self assigned SSL certificate generated by MAMP PRO using the following code in my .htaccess: RewriteEngine On RewriteCond %{HTTPS} !on RewriteRule ...
Hasco's user avatar
  • 171
3 votes
1 answer
2k views

Using Twig's replace filter with getURL()

I have a template that displays in both http and https environments. When pulling my images for the https environment I need to be able to change the URL to https:// from http://. I tried {{ gist....
David A McInnis's user avatar
2 votes
3 answers
276 views

Use Dukt Videos with HTTPS

This is a specific question about the Dukt videos plugin. I have a site that's all HTTPS and I can't seem to find a way to switch all the embeds to also use HTTPS? Is there an option anyone else ...
Keith Mancuso's user avatar