Protocol is stripped from header
-
I’m running a website across multiple domains and I suspect WP Hydra might be the source of an issue I’m having
I have the following script in header.php with the intent of creating a hreflang tag:
<link rel=”alternate” href=”https://domain.com<?php echo parse_url($_SERVER[‘REQUEST_URI’],PHP_URL_PATH); ?>” hreflang=”x-default” />
The idea is to return something like this:
<link rel=”alternate” href=”https://domain.com/URL/Path” hreflang=”x-default” />
But what I get is:
<link rel=”alternate” href=”//domain.com/URL/Path” hreflang=”x’-default” />
As you can see, the “https:” part has been left out but I need it for the hreflang tag. Any suggestions as to what’s happening?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Protocol is stripped from header’ is closed to new replies.