It was caused by CloudFlare https (which doesn’t set the $_SERVER['HTTPS']
variable), I solved it by forcing:
$_SERVER['HTTPS'] = 'on';
in the webserver configuration. After doing so I could also disable the CloudFlare Flexible SSL plugin, and get a little performance gain.
Related Posts:
- Load images with http urls inside https post
- How to remove /index.php/ from URL’s
- Run WordPress frontend and backend in different domains
- How to remove “http://” When Echoing URL?
- Force home page to be https?
- WordPress Move to SSL How to Update Media Assets to HTTPS?
- Change homepage url
- How can I change all links on pages to point to a different domain from where the site is hosted?
- Remove site root trailing slash
- URL parsing – what is it?
- Changing my site url from azure.net to custom domain
- Remove / from www.example.com/ [closed]
- Is it necessary to check for `content-type` in headers?
- Confusion about Site url and directory
- WordPress get parameter ‘unapproved’ and ‘moderation-hash’
- Changing the website URL to the root folder
- Showing my server ip in source code for several links not for all links
- How do I avoid messing up URLs when switching from example.com/subdir to example.com?
- Cannot access WordPress website from external IP while internally it is working properly [closed]
- DNS – Change WordPress Site Name?
- Alternatives to site_url() and get_template_directory_uri()
- What is the best way to revert to www version of domain name?
- Changing siteurl in the database not working
- How to make a seo friendly URL of 2 different pages with same words
- No https in url when writing links like:
- Why my URL has an unknown character string?
- Two domain site: Link base URLs point to wrong domain
- Making a site URL
- What’s the difference between home_url() and site_url()
- Switch from https back to http
- Problem with guids and absolute links
- Mixed content warnings after changing site adress from HTTP to HTTPS
- WPML Get url without outputting
- Dynamic URL to reference custom PHP files
- How to inject custom url path for page ?
- Weird: /?name in URL leads to blog
- I am Looking to append URL Parameter to all URLs
- Login to wp-admin “redirect_to” points to wrong URL after migration
- How do I amend the fixed “author” part in the URL?
- Remove HTTP: from the site URL and just keep // in it
- Is dynamic URL possible in WordPress
- Accessing the Current URL in a Text Widget for a Facebook Share Button?
- Is ‘name’ a reserved word in URL’s?
- get_site_url is not returning anything?
- How to create a custom page base on URL for WordPress?
- How to make menu items active based on hash
- Multiple domain names for one site
- How to always rewrite author archive page URL even if the author does not have a post
- urlencode query string in gravity forms confirmation redirect
- Pages other than Home page not displayed even when URL is good
- Moving a test WP site to live
- How do I write the link from front-page.php to home.php?
- how to make URL link query string
- Problem with change url for all subpages (.htaccess)
- Displaying Post with Custom URL with RewriteRule or add_rewrite_rule
- How to get URL for the first page of post archive
- Newline URL entity when using esc_url()
- How to add URL-Parameter for Javascript Widgets?
- previous_posts_link and next_posts_link, how to return the next/previous post’s title as the url
- Get Top parent url
- hide wp-content from urls
- Get the URL of the page from which an ajax request has been launched within ajax callback
- Can anybody provide me with a function to generate slugs?
- Open editor post in a popup
- WordPress address URL and bloginfo
- Organizing the Navigation Menu
- Porting site URLs to new host but with same domain name [closed]
- What php gets called for home_url/somepage URL?
- Moving Website-URL
- How to prevent unknown addresses which are accessed from my wordpress website [closed]
- Use wp_redirect to add a parameter
- Extracting a variable from a permalink
- Is there an URL listing latest posts
- After changing the site root, how to reflect this for wp-admin too?
- How can I prepopulate the URL address for the add media button
- How to show Specific URL of WordPress on Any one Specific IP only?
- Mapping a domain name
- Add a paramter to page url
- Why “?v=hash” is added to my URLs? [closed]
- Plesk login inaccessible after changing site URL
- WordPress inserting ?q= in URLs
- No url when downloading PDF
- Set A Cookie To URL Parameter, Pass Cookie From Page To Page To Alter Post
- Embed ACF URL Field in WP title field
- Getting Turkish alphabet characters in the URL field in webbrowser
- In-page link works in Firefox but not in Chrome
- How to properly setup MAMP and XIP
- WordPress switch domains
- URLs fine in database but wrong in output
- Cannot access to dashboard on localhost
- How to set global variable in functions.php
- Why am I seeing ‘yes’ and ‘no’ in URLs crawled by Xenu?
- URL with without www shows just a blank page
- How to create custom authors links
- Using functions concatenated with strings inside a variable
- How to generate external url in WordPress
- URL, which automatically close tab
- How can I implement an Article Wizard for non-existing URLs? [closed]
- What purpose does /embed/ URL have and how to avoid SEO problems?
- How do I make the block editor use https by default?