Страница 1 от 2

[ 3.3.x ] Как да си направя правилно sitemap.xml

Публикувано на: 26 Яну 2023, 21:36
от Scorpions95
Здравейте

Опитах се да си направя sitemap.xml файл
според обеснението тук
но ми дава грешка, ето и файла
не мога да разбера къде съм объркал и какво :huh:

Re: [ 3.3.x ] Как да си направя правилно sitemap.xml

Публикувано на: 27 Яну 2023, 22:07
от Dennis
If you're willing to create a static sitemap, just use this https://www.xml-sitemaps.com/

Re: [ 3.3.x ] Как да си направя правилно sitemap.xml

Публикувано на: 29 Яну 2023, 00:42
от Scorpions95
Dennis написа: 27 Яну 2023, 22:07 If you're willing to create a static sitemap, just use this https://www.xml-sitemaps.com/
This is why i don't use site like xml-sitemap

Re: [ 3.3.x ] Как да си направя правилно sitemap.xml

Публикувано на: 29 Яну 2023, 00:52
от Dennis
Keep in mind it takes some time ot paginate the url's in Google Search Console.
Here's one I'm using for one of my companies - all well with 644 perm.

Код за потвърждение: Избери целия код

<?xml version="1.0" encoding="UTF-8"?>
<urlset
      xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
            http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

<url>
  <loc>https://xstay.nl/</loc>
  <lastmod>2022-10-31T15:53:17+00:00</lastmod>
  <priority>1.00</priority>
</url>
<url>
  <loc>https://xstay.nl/request</loc>
  <lastmod>2022-10-31T15:53:17+00:00</lastmod>
  <priority>0.80</priority>
</url>
<url>
  <loc>https://xstay.nl/add</loc>
  <lastmod>2022-10-31T15:53:17+00:00</lastmod>
  <priority>0.80</priority>
</url>
<url>
  <loc>https://xstay.nl/whatsapp</loc>
  <lastmod>2022-10-31T15:53:17+00:00</lastmod>
  <priority>0.80</priority>
</url>
<url>
  <loc>https://xstay.nl/privacy</loc>
  <lastmod>2022-10-31T15:53:17+00:00</lastmod>
  <priority>0.30</priority>
</url>
</urlset>

Re: [ 3.3.x ] Как да си направя правилно sitemap.xml

Публикувано на: 29 Яну 2023, 01:10
от Scorpions95
Dennis написа: 29 Яну 2023, 00:52 Keep in mind it takes some time ot paginate the url's in Google Search Console.
Here's one I'm using for one of my companies - all well with 644 perm.
Usually, when i send a sitemap, i see successfull instantly
Couldn't fetch think it means that google can't reach it, if if can
google will start craw it ...
Извън темата
Sorry for my bad english xd
For some reason THIS site
somehow with name 5334857_500.xml work fine

Maybe someday must to try with other name.xml instead of sitemap.xml

Re: [ 3.3.x ] Как да си направя правилно sitemap.xml

Публикувано на: 29 Яну 2023, 01:24
от Dennis
Sounds like .htaccess is ruling something on "sitemap", limiting access.
You can keep writing in Bulgarian, I'll fully understand you - just find it easier to chat in English myself.

Re: [ 3.3.x ] Как да си направя правилно sitemap.xml

Публикувано на: 29 Яну 2023, 10:43
от Scorpions95
Dennis написа: 29 Яну 2023, 01:24 Sounds like .htaccess is ruling something on "sitemap", limiting access.
Това не го разбрах, искаш да кажеш, че нещо блокира името "sitemap" ли? :think:

Re: [ 3.3.x ] Как да си направя правилно sitemap.xml

Публикувано на: 29 Яну 2023, 10:50
от Dennis
Scorpions95 написа: 29 Яну 2023, 01:10 somehow with name 5334857_500.xml work fine
If Google is able to read every other name, except sitemap.xml, then it could be that reading access to that file is limited by either .htaccess or chmod, yes.
Have you tried using https://www.proxysite.com/ on on the full url of https://asd/sitemap.xml to see if it reads the file ?
644 should be good on sitemap.xml, try 755 until you get to view the source code of the file when accessing it trough a proxy.

You should be able to view it like so:

Re: [ 3.3.x ] Как да си направя правилно sitemap.xml

Публикувано на: 29 Яну 2023, 11:27
от Scorpions95
In this moment my internet i slow, i put sitemap file under the name "5334857_500" so it work now
thanks for your help, next time i will try with proxy server to check if work sitemap source

Re: [ 3.3.x ] Как да си направя правилно sitemap.xml

Публикувано на: 06 Апр 2023, 12:26
от Dennis
Scorpions95 написа: 29 Яну 2023, 11:27 In this moment my internet i slow, i put sitemap file under the name "5334857_500" so it work now
thanks for your help, next time i will try with proxy server to check if work sitemap source
Sure, small tip: if you test updates on pages, always use incognito mode on your browser since it doesn't cache pages/images you'll always visit the page as a new user.