Articles of http

What is this HTTP_REFERRER “WordPress/4.1.2”

On our website we have huge traffic with same IP and referrer “WordPress/4.1.2; http://www.xxxx.com”. The log line looks like: 62.24.2.2 – – [22/Apr/2015:17:28:15 +0200] “GET /wp-content/uploads/2015/04/randevouz.jpg HTTP/1.0” 200 791898 “-” “WordPress/4.1.2; http://www.xxxx.com” The IP and domain xxxx.com are real and I can see the website who doing it, but before block I want to know […]

Page can't hand request – HTTP ERROR 500 – when updating something

I have a wordpress website filled with lots of different content (news, posts, products in an online shop, etc.). I had some problems with the famous “Internal Server Error 500” yesterday, but after contacting my hosting provider they used a restore point from 5 days ago and the error was gone. But now, everytime a […]

why is $_REQUESt empty?

wp-login.php uses $_REQUEST[‘redirect_to’] as a way to override redirection for lostpassword link. However, it doesn’t seem to work for some reason. Maybe its my server environment, but $_REQUEST[‘redirect_to’] value is unset even if I explicitly pass it as a GET variable in the URI. Is this a wordpress thing or something possibly with my hosting […]

How to make my site use HTTPS for images or how to insert images as relative paths?

I recently added HTTPS to my domain and I have it so that http is redirected to https but my WordPress blog is still using http for it’s images. I upload an image and it is using http. Is there something I can do to ensure that my images are using https when they are […]

Errors on a single host using wp_remote_get() unless sslverify is set to false

I’m testing a plugin on HostGator, GoDaddy, DreamHost and DigitalOcean, developing locally with VVV. I’m running WordPress 4.4.2 across the board. I’m using wp_remote_get() to retrieve weather data from NOAA’s Text Data Server using 3 different endpoints. I ran into trouble when I extended testing to another host, Arvixe, where I was getting a 400 […]

Changed the url into https and now can't access site admin

I recently did changed in the dashboard the url (http to https) just for test. And yes, the site doesn’t work (it is all scramble). Now I can not log into the the WP dashboard to reverse the change. Is there a way to do that from the host server? Thank yo in advance, Almir

Several times request to load plugins when sending one request

When we sending 1 request to load any page (Home, Single or etc), WordPress running more than several times. For example you can adding the below code in the main plugin file or functions.php in current theme and you can see the log file! file_put_contents(‘log’, print_r($_REQUEST, 1), FILE_APPEND); I need a solution to fix/skip this […]

Need workaround for insecure XMLHttpRequest endpoint request

I’m building an aggregator of sorts in WordPress that pulls posts using the new API from specific sites. Most if not all of these sites will not have SSL, thus HTTP. Of course, I’m getting “Mixed Content: The page [xxx] was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint [yyy]. This request has been […]

Remove rel=shortlink from HTTP header

HTTP header of posts on my site looks like this: accept-ranges:bytes cache-control:public, max-age=0,public,public content-encoding:gzip content-length:5369 content-type:text/html; charset=UTF-8 date:Fri, 08 Dec 2017 07:27:40 GMT expires:Fri, 08 Dec 2017 07:19:33 GMT link:<https://example.com/?p=5697>; rel=shortlink server:Apache status:200 vary:Accept-Encoding How to remove this line from HTTP header responce: link:<https://example.com/?p=5697>; rel=shortlink Please, do not confuse this with <head> </head> section of […]

Redirect user to a particular link in 10 seconds after using wp_die

I want to use some type of functionality if ( $some_condition == false ) { wp_die(); // Here i want to redirect page on some URL after 10 seconds } I need to do it inside a plugin. Is it possible to do that?