Tile URL Crawled
-
Hi,
Your plugin injects the URL of the tile server into the
<script>tag at the bottom of where the shortcode is placed …var baseUrl = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';We are using our own tile server URL which you can set in the settings …
var baseUrl = 'https://example.com/wp-admin/admin-ajax.php?action=leaflet_js_tile&subdomain={s}&z={z}&x={x}&y={y}';Which works perfectly. Awesome.
The problem is that Google (and possibly other search engines) are extracting the URL from the JavaScript and attempting to index it. This in turn is resulting in the following error from Google Search Console …
Blocked due to other 4xx issue
These pages aren’t indexed or served on Google
Examples:
https://example.com/wp-admin/admin-ajax.php?action=leaflet_js_tile&subdomain={s}&z={z}&x={x}&y={y}Is there a way that you can pass this URL to JavaScript without it being picked up by the search engines as a URL to crawl?
Thank you in advance.
Oliver
The topic ‘Tile URL Crawled’ is closed to new replies.