3

Wordpress url http error

 2 years ago
source link: https://www.programmerinterview.com/assortment/wordpress-url-http-error/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Recently we encountered a strange error when trying to add some functionality so that when people click on the “Assortment of Knowledge” tab, it automatically goes to an introduction page.

The wordpress url problem

The problem was that wordpress would try to go to the url “www.programmerinterview http”. Now, this is obviously a url that doesn’t even exist, so it was clear that there was a problem somewhere. And our ISP was obviously telling us that no such url exists. So, we spent about 15 minutes trying to fix the problem until we noticed that there was problem here – see if you can notice it:

Wordpress HTTP problem url

See the problem above? Well, it’s just missing a blank space in front of the url!

Start with the most obvious mistakes

So, what’s the lesson here? Well, when debugging it’s always best to look at the most
obvious things first, since those often account for 50% of the problems that you
encounter. Next time we’ll remember to listen to our own advice!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK