mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-08-31 23:53:25 +00:00
remove embed pages and 404 from search results
This commit is contained in:
@@ -12,7 +12,7 @@ function generateSitemap() {
|
|||||||
const url = page.replace('.html', '').replace('index', '');
|
const url = page.replace('.html', '').replace('index', '');
|
||||||
|
|
||||||
const rootDir = url.split('/')[0];
|
const rootDir = url.split('/')[0];
|
||||||
if (languages[url] || languages[rootDir]) {
|
if (url.includes('embed') || url.includes('404') || languages[url] || languages[rootDir]) {
|
||||||
// Skip localized pages
|
// Skip localized pages
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
User-agent: *
|
User-agent: *
|
||||||
Disallow: /*?*
|
Disallow: /*?*
|
||||||
|
Disallow: /embed
|
||||||
|
Disallow: /*/embed
|
||||||
|
Disallow: /404
|
||||||
Sitemap: https://gpx.studio/sitemap.xml
|
Sitemap: https://gpx.studio/sitemap.xml
|
||||||
|
Reference in New Issue
Block a user