Questions tagged [http]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
80 views

Wordpress is removing http:// from my urls

I need php get_headers to work in my script. But the target url is http as in "http://example.com", and all I get back is 500 Bad Request. I have no control over the target site and why they ...
P a u l's user avatar
  • 53
0 votes
1 answer
37 views

WP_PLUGIN_URL equivalent

I am using a plugin that uses WP_PLUGIN_URL and that cause mixed content issues. This is the line of code: <img src="<?php echo esc_url( WP_PLUGIN_URL . '/plugin-name/images/icon1.png' ); ?...
PlainH2O's user avatar
2 votes
1 answer
41 views

How do I make the block editor use https by default?

By default the Gutenberg block editor uses http:// instead of https:// when you enter a URL that does not include the protocol. For example, if I enter stackoverflow.com the block editor assumes it is ...
terryoboy's user avatar
0 votes
1 answer
36 views

Development to production, how to move a development site from http + dev.example.com to a production site https + example.com?

I'm in a somewhat odd development situation where I need to develop a WP site at http://dev.example.com/ and then make it live at https://example.com/. The summary is: Develop on http, publish on ...
Jeff's user avatar
  • 125
0 votes
1 answer
79 views

How to force HTTP and stop SSL completey on Wordpress website

We have a Wordpress website wich uses Video files from a local sever without SSL. If we use SSL on the main website url, it can't play Videos because of CORS policies so we need to completely disable ...
Taqi Vaheed's user avatar
0 votes
2 answers
223 views

How do you modify HTTP response headers on feed/?

Trying to change Content-Type: application/rss+xml to Content-Type: something/else on example.com/feed/. My code so far: function force_404() { global $wp_query; // Modify content-type header ...
Jeff's user avatar
  • 125
1 vote
1 answer
149 views

Changing my URL in General Settings cause the site to crash

I installed wordpress on ubuntu using this guide I uploaded my backup and everything went fine until I tried to use my domain. Whenever I try to change from http://20.210.236.41 to my domain http://...
SeanJ's user avatar
  • 167
1 vote
1 answer
369 views

Image file urls still point to http instead of https

I just noticed that all my images in "Media" have the "http://...." URL under "File URL:". I certainly have SSL installed and under Settings > General the domain is ...
Boxhamster's user avatar
1 vote
0 answers
20 views

Modifying request $_COOKIE

I have setup some conditional logic within a WP theme to display certain sections based a cookie value. I am trying now add some logic to override that cookie value in the request itself, based on a ...
mike_temby's user avatar
0 votes
1 answer
229 views

404/500 error on content images if Referer header is from another domain [closed]

Not very familiar with WordPress so I'm not sure what's causing this. Essentially, we have a few image assets stored under wp-content. When we access some assets (i.e. cmssubdomain.apex.com/wp-content/...
AnimaSola's user avatar
  • 113
1 vote
0 answers
54 views

Is it possible to access the wp-admin from one instance while keeping WP_HOME pointing to the balancing url?

I have a Wordpress running in a load balancer scheme with two instances. For security reasons, i've decided to block wp admin access from the public url and allowing it from one of the instances. ...
Max's user avatar
  • 121
0 votes
0 answers
88 views

Colon is Missing In My Website Url in Wordpress Shortcode

So I've had this shortcode [site_url] working fine until a few days ago, now as I'm trying to use it again and it shows me a https// instead of https://. I've tried using this function: //Website URL ...
Alex P's user avatar
  • 1
0 votes
3 answers
2k views

Wordpress - https : Css and Js files are not working (load on http instead of https)

i have moved my website to another server and changed the domain name, then i installed an SSL certificate, and when i change my website form http to https in wp-options and wp-config and also set a ...
Norman's user avatar
  • 1
4 votes
0 answers
125 views

Does WordPress only support HTTP 1.1?

I'm not sure if this is a bug or if I'm missing anything. But according to the documentation for WP_Http::request(), you should be able to set the HTTP protocol version with the httpversion option. ...
devbanana's user avatar
  • 143
0 votes
0 answers
132 views

HTTP Error upload ( localhost )

HTTP Error .. I’ve been trying off and on to debug this issue for the last few days and thus far have had no success. The proplem starts with BuddyPress plugin ( Profile Avatar Upload Section ) The ...
mok's user avatar
  • 1
0 votes
0 answers
25 views

Reading URL Parameters

The following URL call, is redirected and processed by the 404.php page, indented to capture the s parameter. https://www.example.com/doc/?s=par For some reason, while try to processing the s ...
Brethlosze's user avatar
0 votes
2 answers
680 views

Display values of current POST request on page

I would like to get some value that was included in the http request header and display it on my webpage, i.e: I have a webpage, say: 'mywebsite.com' I have a POST request to 'mywebsite.com' with a ...
Jack Jhonsen's user avatar
0 votes
0 answers
26 views

Trouble when I try to connect to WordPress

I have 1 domain and 1 subdomain. Both have a different wordpress install on it. Once every month, cookies expire and people have to login again. Sometimes, when I and the users try to login, nothing ...
user avatar
0 votes
1 answer
416 views

Strange behavior: random HTTP error 500 fixed by visiting Permalinks settings page (htaccess issue with language code)

I’ve got a pretty weird behavior on my site that I’d like to resolve. From time to time (no recognized pattern), my site shows a 500 error, on the front pages or on some admin pages. When this 500 ...
claire_'s user avatar
  • 55
1 vote
0 answers
1k views

No 'Access-Control-Allow-Origin' header is present [closed]

I keep getting this error message when I am sending a fetch request from the admin side. I want to connect to that API and get some response. Access to fetch at 'https://34557322456.execute-api.ap-...
user avatar
1 vote
1 answer
1k views

Warning: Use of undefined constant HTTP_USER_AGENT - assumed 'HTTP_USER_AGENT' (this will throw an Error in a future version of PHP)

I am new to this and I need help in figuring out how to fix this error: Warning: Use of undefined constant HTTP_USER_AGENT - assumed 'HTTP_USER_AGENT' (this will throw an Error in a future version of ...
Chris o's user avatar
  • 11
0 votes
1 answer
178 views

I am receiving a pluggable.php warning sign on my only http:// page

I just recently shared a link to my site using he http to my site: http://thechronicalist.com but instead of redirecting, i just displays this: Warning: Cannot modify header information - headers ...
THE CHRONICALIST's user avatar
0 votes
0 answers
515 views

Get "HTTP/1.1 406 Not Acceptable" when accesing my website with Delphi Indy Control

I am usig Delphi XE10.3 + TIdHTTP(Indy)(10.6.2) control to visit websites. When visiting my website via Get method, I will get an exception "HTTP/1.1 406 Not Acceptable". I am not sure ...
alancc's user avatar
  • 41
1 vote
1 answer
521 views

Redirect http to https does not work on subdir where another instance of WordPress installed

I have installed two instances of WordPress, on https://www.example.com/ and a subdirectory https://www.example.com/blogs/ Now to make all HTTP URLs be redirected to the HTTPS version, I add the ...
alancc's user avatar
  • 41
0 votes
1 answer
92 views

Redirecting specific sites to HTTP in WordPress Multisite

What I need to do is redirect only some of the sites in my multisite installation to use HTTP instead of HTTPS. Currently my setup has been so that every site redirects to HTTPS but I can't seem to ...
user1589375's user avatar
1 vote
0 answers
636 views

Why does wp_remote_post returns an empty body response on certain endpoints?

Im gonna make this brief; Im using wp_remote_post to do a POST request to an external API. My local development environment looks something like "http://website.test". As of now I am ...
Mauricioenvy's user avatar
0 votes
1 answer
25 views

Website Migration (with https) to a new domain(http)

We are planning to migrate one of our sites since it has been hacked and recovered. We want it to migrate to a new domain (account but same hosting). Now my problem is the site we want to migrate to a ...
rusal's user avatar
  • 1
0 votes
0 answers
137 views

Plesk login inaccessible after changing site URL

I was initially facing this issue: (I am locked out of my WordPress site after changing site URL from Http to Https). I need to access wp-config to implement the given solution and was trying to ...
Bhavika Khare's user avatar
0 votes
1 answer
84 views

Understanding Redirects

I have a WordPress website that is working well. The website is shared hosted on a popular hosting site. It was migrated/transferred from a different hosting site to the current one (this point is ...
user163862's user avatar
4 votes
1 answer
8k views

Disabling the X-Redirect-By response header

Is there a clean way to not have WordPress send the X-Redirect-By response header when redirects happen? I'd like to disable it in order not to expose information about our software stack. Something I ...
Pieter's user avatar
  • 143
0 votes
1 answer
114 views

Why does Wordpress uses HTTPS for JS, CSS on EC2

I have migrated Wordpress site to EC2. Domain changes done in wp-config.php & in DB tables Also set AllowOverride All in Apache sites default conf. Issue is: Even though nowhere I'm using force ...
Shailesh's user avatar
1 vote
2 answers
2k views

wordpress api using rest_route for other pages

Ok, so I am using WordPress rest API to fetch the data using front-end. I am having the plain permalinks and unfortunately, I am not allowed to change the permalinks. So, for https://www.example....
new's user avatar
  • 31
1 vote
2 answers
244 views

Redirect HTTP to HTTPS for all sub domains (blog posts)

I have a Wordpress site functioning as a blog site on a website. The main website is just basic HTML it is only www.example.com/blog which has the WordPress site. I have installed an SSL certificate ...
Pete B's user avatar
  • 11
0 votes
1 answer
726 views

After changing Site http to https, can't access wp login page with a digitalocean hosting

I changed url from http to https from WP Settings. After refreshing I can't access wp-login page. It says site can't be reached or too many redirects. I have Cloudflare SSL enabled. I am on digital ...
Ilyass Eddamoh's user avatar
0 votes
1 answer
24 views

Specific Page/Post Need to Stay Non SSL

I have a website that is already SSL secured. I want to have a plugin that will give me a tick mark option to make the page/post as non-SSL. Rarely I need to use that but that is not a small amount, ...
Mohsin Alam's user avatar
0 votes
1 answer
73 views

Staging Session Randomly Switched from Secure (https) to Not Secure

When I'm on my staging site making edits, occasionally the session will go from secure to "Not Secured" (shown in Chrome address bar). So, I'm in a secure session, make a change in the edit view, ...
James Randolph's user avatar
3 votes
2 answers
136 views

Redirect www to non-www htaccess

It's been asked a gazillion times but it's still not working in my Wordpress. I want to redirect everything to https://website.com. Current code been used: <IfModule mod_rewrite.c> ...
Adrihin's user avatar
  • 33
0 votes
1 answer
35 views

mixed contents admin panel is Unsecured

below link is causing mixed content url errors which gives wp-admin insecure warnings, I want to change this URL http to https I unable to find where this url is being called from <html class="wp-...
Jason0011's user avatar
  • 101
0 votes
1 answer
62 views

Any any insecure http:// URLs left in wordpress?

Just about everything should be https now. I just examined the 5.2.3 php files (844 files with 365741 non-blank lines -- yikes!!) and found several references that might be real. I say "might" be ...
President James K. Polk's user avatar
0 votes
1 answer
1k views

Implementing a URL Shortener

I want to create a URL shortener where I use a REST API endpoint request to get a shortened url, e.g.: mywebsite.com/wp-json/wl/v1/shorten?url=url-to-shorten.com Where I get a response with a ...
Condor's user avatar
  • 101
0 votes
1 answer
42 views

Sudden Upload HTTP errors, PHP uploads and memory limits are already to high to my taste. Anything else?

So, let me clear everything at the start: I'm not on shared hosting. PHP upload limit is already set for 700mb. PHP memory limit is set a 512mb. Nginx, PHP-FPM and WordPress' logs tells me nothing ...
Jean-Philippe Murray's user avatar
0 votes
1 answer
842 views

How to convert srcset links from https to http?

After trying SSL and having some unfortunate problem with it, I decide to go back to HTTP. Everything seems find, by the srcset attribute of <img> tag is still https everywhere. This post ...
Ooker's user avatar
  • 330
0 votes
0 answers
214 views

WP Rest Api GET method restriction on route, but POST method also works

I'm doing some basic API testing and notice that restricting my new route to GET doesn't work. POST requests also go though using Postman. (PUT, PATCH, DELETE do not however, displaying a "no matching ...
Sean D's user avatar
  • 357
0 votes
3 answers
88 views

Moving wordpress site from HTTP to HTTPS ERR_TOO_MANY_REDIRECTS

I want to moving my site followourtrack.fr from http to https but i have the message ERR_TOO_MANY_REDIRECTS wp-config.php : define('WP_HOME','https://www.followourtrack.fr/'); define('WP_SITEURL','...
Valentin's user avatar
0 votes
2 answers
2k views

My site doesn't redirect from HTTP to HTTPS

I have SSL certificate activated on my website. I did change the settings: setting > general and edit wp-config.php to force HTTPS: define( 'FORCE_SSL_ADMIN', true ); The problem is, the ...
zEn feeLo's user avatar
  • 207
1 vote
2 answers
2k views

Redirect from https to http or from http to https? [closed]

We have a WordPress blog, google is indexing http as well as https urls. Now we are considering to either redirect https to http, or to use https and redirect all http traffic there. And how can we ...
meysam's user avatar
  • 21
1 vote
1 answer
2k views

POST request not going through?

I'm still trying to see clearly in some aspects of the API. I have a custom route add_action( 'rest_api_init', function () { register_rest_route('my-project/v1/', '/form/post/', array( '...
TTT's user avatar
  • 329
0 votes
1 answer
27 views

Implications of not completing all tasks when switching to HTTPS

I've taken over a site where it's using HTTPS but when I looked in the WP Settings, it still showed HTTP. Surely this should be throwing up all kinds of errors? I know this should be changed to ...
Dan's user avatar
  • 27
1 vote
1 answer
994 views

How To Reset Ownership And Permissions of Wp-Content Folder, In Order to Fix HTTP Error When Uploading Images to WordPress Media Library

I've noticed several articles about how to deal with the HTTP error when uploading images to the WP Media library: How to Fix HTTP Error When Uploading Images? However, I've already tried adding ...
HappyHands31's user avatar
0 votes
2 answers
80 views

All content is HTTPS, but browsers warn of HTTP mixed content [closed]

Previously Chrome, Firefox, Edge, and other browsers showed our site as fully SSL/HTTPS secure. For some reason, they now warn about mixed content. But the content in question seems to be secure. ...
Andy Giesler's user avatar