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
- Can’t change url because site address is greyed out
- How to Convert Parent Page’s URL in Singular Name format when Child page is open
- How do you retrieve a post by slug name through REST API?
- How does routing on wordpress work?
- Redirecting to old domain after migration
- Unwanted media library URLs in posts?
- How to remove file versions from the file source links in wp_head?
- Add menu and submenu in admin with a URL instead of slug?
- Update media file url in wordpress media library
- Change logo url link
- As soon as I add a custom query_var using the filter, my pages point to an archive page – why?
- Concatenate site_url and string doesn’t work
- Broken urls with http site and https wp-admin
- Password protected page Hash url
- How to create a page for authors? like www.myblog.com/author/
- Old URL Redirect website after migration
- Best way to give site sub-page it’s own domain?
- Dynamically change page title from URL param
- Getting 404 Hits on URI -/-/-/-/-/-/-/-/-/- . How to deal
- How to change logo url [closed]
- Make homepage a non-WordPress page
- how to trace a file by the route url
- Is get_permalink also the canonical URL?
- Remove trailing slash from previous_posts_link()
- Moved WP into new folder. How to fix image links in posts?
- Using esc_url_raw with protocols properly
- How to parse a custom url (within WP site) and obtain params passed to that URL
- wordpress copyright dynamic
- Multiple duplicate URL’s
- Made WordPress URL and site address URL the same
- How can i get rid of wp in front of URL
- Dynamic URL and pass the data to an iframe
- Unnecessary url
- How to close tab automatically if URL has specific word? [closed]
- Replace category name with article id in wordpress urls
- Finding URI in Child Theme
- Make custom system url
- Sanitizing URL in a WordPress plugin
- How to display translated content with custom slug?
- How to get a page url segment on wordpress?
- How to set wordpress url on local host to access it via VPN
- How to create a user ability to save pages with full url?
- How to bulk Update URLs to new values?
- After changed url from http to https, it says “This site can’t be reached”
- Add more than one query parameter onto wordpress url
- WordPress Website change directory
- Allow duplicate slugs for pages and posts
- Change dynamically URL to SEO friendly via .htaccess?
- Update siteurl and home in multisite subsites to https
- Get userdata from url
- How to make url variable?
- WordPress dynamic subpage for ACF
- From whence %E2%80%8E at the end of post link
- WordPress Address (URL) Reverts back
- wp-login.php ampersand in url results in 404
- How to pass REQUEST_URI to function
- Change path/url of admin-bar.min.css
- wordpress url with format .com/category/sub-category
- URL Forwarding – wordpress links reverting back
- Get gallery url (Nextgen) [closed]
- How to use query string in URL to display content on the wordpress page
- Multisite subdirectory blogs missing slash
- Function to get custom post image URL
- How to echo a dynamic url
- Block a specific url request
- WordPress rewrites my link with custom URL scheme to http(s)
- Show page name after home url
- how to add param string after website url in wordpress?
- Are the wp entries in these URL’s legitimate?
- url ends in “/embed”
- What is the correct url to request the 404 page?
- How to hide ids from URL [closed]