Home>

OS: CentOS
Web Server: Nginx
Framework: Dokuwiki

I am making a site with dokuwiki.
You can automatically generate the site map with the DOKUWIKI function, but the file nameSITEMAP.XML.GZIt is.

in a browserhttp://example.com/sitemap.xml.gzIf you access, nothing is displayed on the screen,SITEMAP.XML.GZDownload starts.

This is a normal operation that the file is downloaded without permission?
(Does the search engine can recognize the site map as it is?)


Document Route:/Home /User1 /Dokuwiki
Sitemap Path:/home/user1/dokuwiki/data/cache/sitemap.xml.gz

LICATION= /SITEMAP.XML.GZ {
    root /home /user1 /dokuwiki /data /cache
}

Nginx .conf has the above settings.


For example.phpIn case
If NGINX settings are insufficient, they will be downloaded when you access.
However, if you set up FastCGI, PHP is run to display the page.

.GZAlso,
If you set it, do GZIP expanded and the contents will be displayed in a browser?


Question

  1. .gzIs it normal to be downloaded?
    (Can the search engine can recognize the site map as it is?)

  2. .gzIs it possible to expand a site map on a browser automatically?

.GZEven if the search engine is recognized as it is, I think I want a site map that can be seen with people on my browser.
Because I want to check the newly created page visually reflected in the site map.

The question of "Current status is normal?" Is not very meaningful, and it should be a figure that you should move as desired. If the current situation is required, it is normal, and if it is different from the request, "I want to do this, but what kind of thing is it?"

774RR2021-07-10 01:09:31
  • Answer # 1

    extension.gzIs one of the compression formats called GZIP and basically does not appear directly in the browser (it is normal that the download starts with a URL).

    SITEMAP.XMLSince itself is mainly read by the search engine (crawler), if you want to confirm that the contents are successfully output,SITEMAP.XML.GZSave locally and deploy it by archiverSitemap.xmlYou should be able to retrieve.

    Reference:
    https://www.dokuwiki.org/ja:itemap

    Sitemap file is installed in the DOKUWIKI Cache subdirectory. The file can be accessed by the URL http://your_domain/dokuwiki/doku.php? Do= sitemap. Depending on whether GZIP is available on the installed PHP, the file name is SITEMAP.XML.GZ (if GZIP is available) or SITEMAP.XML (if GZIP is not available). Most of the recent PHP is more effective for GZIP support, so most are SITEMAP.XML.GZ.

    Thank you for your reply. There is no problem with .gz downloaded.

    すめす2021-07-10 01:09:31
  • Answer # 2

    extension.gzIs one of the compression formats called GZIP and basically does not appear directly in the browser (it is normal that the download starts with a URL).

    SITEMAP.XMLSince itself is mainly read by the search engine (crawler), if you want to confirm that the contents are successfully output,SITEMAP.XML.GZSave locally and deploy it by archiverSitemap.xmlYou should be able to retrieve.

    Reference:
    https://www.dokuwiki.org/ja:itemap

    Sitemap file is installed in the DOKUWIKI Cache subdirectory. The file can be accessed by the URL http://your_domain/dokuwiki/doku.php? Do= sitemap. Depending on whether GZIP is available on the installed PHP, the file name is SITEMAP.XML.GZ (if GZIP is available) or SITEMAP.XML (if GZIP is not available). Most of the recent PHP is more effective for GZIP support, so most are SITEMAP.XML.GZ.

    Thank you for your reply. There is no problem with .gz downloaded.

    すめす2021-07-10 01:09:31
  • Answer # 3

    sitemapsAccording to the specifications of

    You can send multiple site map files, but up to 50,000 URLs listed in each site map file must be less than 50 MB (52,428,800 bytes).
    If necessary, you can compress the site map file to 50 MB or less in GZIP format to reduce server load.
    If you want to list 50,000 URLs, you need to create multiple site map files.

    is.
    As well

    For more information about the syntax, please visit the Site Map Protocol page.

    As it is

    , it seems that it can be analyzed by search engine even if it is compressed with GZ.

    Thank you for the information. SiteMap was grasping that the OK is OK with GZ, but when you access the browser, I think that the binary text will be displayed and the text after GZ deployment will be displayed.

    すめす2021-07-10 01:09:31
  • Answer # 4

    sitemapsAccording to the specifications of

    You can send multiple site map files, but up to 50,000 URLs listed in each site map file must be less than 50 MB (52,428,800 bytes).
    If necessary, you can compress the site map file to 50 MB or less in GZIP format to reduce server load.
    If you want to list 50,000 URLs, you need to create multiple site map files.

    is.
    As well

    For more information about the syntax, please visit the Site Map Protocol page.

    As it is

    , it seems that it can be analyzed by search engine even if it is compressed with GZ.

    Thank you for the information. SiteMap was grasping that the OK is OK with GZ, but when you access the browser, I think that the binary text will be displayed and the text after GZ deployment will be displayed.

    すめす2021-07-10 01:09:31