Generating the sitemap.xml file

Full protocol description - https://www.sitemaps.org/protocol.html

File Requirements

  • The file can contain up to 50,000 URLs.
  • The size is no more than 10 MB.
  • File encoding must be UTF-8.
  • Cyrillic domains are written as http: //xn--80aswg.xn--p1ai/
  • Characters in URLs (& ' " < >) should be replaced with mnemonics (& amp; & apos; &quot; &gt; &lt;).
19.11.2016, updated 03.06.2021
37

Comments

to add a comment.

Other publications

Regular Expression Shortcodes
Often on sites, it becomes necessary to insert dynamic information blocks into the texts of pages - banners, phones...
25
0
Checking data with regular expressions
A collection of regular expressions with examples in PHP for validating data from form fields.
49
0
Automatic setting of the user's time zone
date_default_timezone_set sets the default timezone used by all date / time functions.
113
0
Serialize function, possible problems
The serialize () function returns a string representation of any value (array, object, etc.). Using serialize on an...
32
0
How to set up Last-Modified
The Last-Modified header helps to optimize the loading of web pages and make the job easier for search engines.
100
0
How to find out if a request came via AJAX
To distinguish between direct and AJAX requests, simply check the value of the $ _SERVER global variable
60
0