Questions tagged [https]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
28 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....
1
vote
1answer
74 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 ...
1
vote
1answer
68 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 ...
1
vote
1answer
76 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 ...
1
vote
1answer
314 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 ...
1
vote
1answer
283 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 ...
1
vote
2answers
165 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 ...
2
votes
1answer
546 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 ...
1
vote
3answers
563 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 ...
1
vote
1answer
3k 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 ...
1
vote
1answer
243 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. ...
0
votes
0answers
80 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 ...
3
votes
2answers
1k 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. ...
2
votes
1answer
551 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: ...
2
votes
1answer
863 views

Read POSTed JSON data from the request body

Is there a way with the request service to read POSTed JSON from php://input?
0
votes
1answer
302 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 ...
1
vote
1answer
118 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 ...
1
vote
2answers
3k 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: ...
0
votes
1answer
346 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/…. ...
2
votes
1answer
837 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 ...
1
vote
1answer
906 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 ...
2
votes
2answers
232 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 ...
11
votes
3answers
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: '...
2
votes
2answers
3k 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 ...
2
votes
1answer
1k 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....
2
votes
3answers
247 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 ...