URL wrong
-
For sites setup with wordpress in a sub-folder, this is outputing example.com/wordpress as the URL property, which goes against the guideline for this property on the google page:
url – This property specifies the URL of your website. It must match the canonical URL of your domain’s homepage.
Line 42 should use:
echo ' "url": "' . get_home_url() . '/",' . PHP_EOL;
To get the Site Address (URL) field from the settings > general page.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘URL wrong’ is closed to new replies.