sitemap xml application information

SiteMap XML Dynamic SiteMap Generator is a php based sitemap generator. You can run it on our server for free to create a static sitemap for your web site. Once you activate your account it can also be used to build dynamic site maps that will always reflect the status of your site and can be directly called from your server.

It is designed for ease of use, with the ability in dynamic code to define the desired SiteMap Type (XML, RSS, HTML or Text), content and settings. SiteMap XML is best suited to medium size sites of up to 5000 pages.

Google and other major search engines use XML site maps to assist and improve the site indexing process. SiteMap XML can generate site maps suitable for search engine indexing as well as a HTML site map that is human readable and also capable of being read and indexed by search engines.

If your server supports php you can run dynamic sitemap code from SiteMap XML Dynamic SiteMap Generator directly on your server. When running on your server you can set the default variables and create real time dynamic site maps.

Key Features

Example Site Maps

Static Sitemap

Example static site map generated by SiteMap XML Dynamic SiteMap Generator.

Google SiteMap - Static

Dynamic Site Maps

Example dynamic site maps using dynamic sitemap code generated by SiteMap XML Dynamic SiteMap Generator. When viewing these site maps in a browser some of the encoding may be hidden, to see the full structure and encoding use the view source function of the browser.

Google SiteMap - Dynamic

RSS SiteMap - Dynamic

Full HTML SiteMap - Dynamic

Text SiteMap - Dynamic

Sitemaps Protocol SiteMap - Dynamic

Application

SiteMap XML Dynamic SiteMap Generator provides a site map type suitable for any search engine.

You can submit specifically formatted sitemaps directly to search engines, this guarantees that the search engine is aware of your site map and is not simply waiting for the next crawl to identify it. Specific site map submission links include:

Google Sitemaps structure closely follow the Sitemaps Protocol and Google sitemaps are suitable for submission to major search engines.

Generate a sitemap and improve the exploration of your site by robots

Operation

At SiteMap XML Dynamic SiteMap Generator input a start url in the StartUrls text area.

Generate Static SiteMap will build a static sitemap. Using a text editor copy/paste and save the contents of the Code text area as a file (.xml|.rss|.html|.txt). When this file is opened in a browser it will display a static sitemap.

Building a Static SiteMap provides a sitemap in the set format reflecting your site at this point in time. This SiteMap can be saved and provided to search engines or displayed on your site however if your site changes a new SiteMap will need to be built for the changes to be included. Alternately you can Generate Dynamic SiteMap Code that once uploaded to your server will always return a current valid and up to date SiteMap.

View Static SiteMap will open and display the static sitemap in the browser allowing you to see how it will be displayed in a browser without having to upload it. As an alternative to saving the SiteMap from the text area you can view source of this display and then use Save As from your browser. This display will not run Dynamic SiteMap Code and should not be used with Dynamic SiteMap Code. Dynamic SiteMap Code must be uploaded and run on your server. Use the browser back button to return to SiteMap XML Dynamic SiteMap Generator.

Generate Dynamic SiteMap Code will build dynamic sitemap code. Using a text editor copy/paste and save the contents of the Code text area as a .php file (.php). When this file is uploaded and run on a server it will build a dynamic site map based on the set variables.

Once uploaded whenever this code is called it will dynamically build a SiteMap in real time and return a current SiteMap of your site. As Dynamic SiteMaps are re-built every time the Dynamic SiteMap Code is called they are not recommended for very large sites (ie greater than 5,000 pages). This is due to the time required to extract the links and possible server loading. For most sites on reliable servers Dynamic SiteMap Code can be considered similar to calling each of the web pages on the site one after the other. It is recommended that before Dynamic Site Map Code is submitted to search engines it is tested to confirm functionality. Get variables can be applied to dynamic sitemap urls to provide an indication of the processing time required for different settings. Setting the Depth and Limit to the lowest values that will fully index the site will minimize server load and processing time. Including the Last Modified Date, Title or Description in a SiteMap increases the processing time and server load.

Variables can be adjusted in the Generated Dynamic SiteMap Code by editing in a text editor or may be appended to the file address as get variables.

When your file is uploaded to your web server and opened in your browser it will display your sitemap and it's url can be submitted to search engines.

When Dynamic SiteMap Code uploaded to your server is called it will automatically build a SiteMap reflecting the current status of your site.

When a Static SiteMap uploaded to your server is called it will display a sitemap of your site as it was when the Static SiteMap was generated.

The SiteMap processing time depends upon the number of links extracted and the settings applied. It will generally range from less than a second to several minutes. An indicative processing time is 1 sec per 100 links extracted. Selecting Last Modified Date, Title, or Description variables will result in a slower processing time.

↻ Refresh returns variables to default values.

The Code text area includes the Static SiteMap or Dynamic SiteMap Code. Select and copy this output to a text editor. For Dynamic SiteMap Code from the text editor save the output as a file with a .php extension ie sitemap.php. For Static SiteMaps save the output code as a file with a .xml extension for Google and RSS SiteMaps ie sitemap.xml, a file with a .html or .htm extension for HTML SiteMaps ie sitemap.html, and a file with a .txt extension for Text SiteMaps ie sitemap.txt. Then upload the saved file to your server.

Do not use a html editor for any of this process when you are saving php code as it may be corrupted. Only a text editor should be used. It is recommended that any file that includes php code such as Dynamic SiteMap Code be saved with a .php extension (i.e sitemap.php). Some servers require files to have the extension .php before they will execute php code within the file. If using NotePad as your text editor when you Save, select Save As Type "All Files" and then provide the full File Name i.e "sitemap.php" to ensure a .txt extension is not applied to the file.

Start URLs

In the StartUrls text area input the starting URLs including protocol (ie https://www.mydomain.com/). If more than one starting url is used each url must be separated by a comma (ie ,). SiteMap XML will extract href links from each of these and if the set Depth is greater than 0 and the set Links has not been reached extract href links from each of the links. The domain of the first URL will be set as the site domain and only URLs relating to this site and that pass the Include, Exclude tests will be used in the generated SiteMap.

In Dynamic SiteMap code you can edit this variable. A value of https://www.mydomain.com/ appears as $startUrls="https://www.mydomain.com/";. If required this variable can be directly edited using a text editor.

The standard default value is $startUrls="";

Dynamic SiteMap Variables

In Dynamic SiteMap code you can edit the following variables using a text editor.

SiteMap Type

Sets the SiteMap type.

Google SiteMap

Generates a SiteMap in the XML format required by Google Sitemaps. This is the default setting and can be used for most search engine sitemap submissions.

SiteMap Type set as Google SiteMap appears as $siteMapType="google";. This is the standard default value.

RSS SiteMap

Generates a SiteMap in RSS format.

SiteMap Type set as RSS SiteMap appears as $siteMapType="rss";.

HTML SiteMap

Generates a SiteMap in HTML format for your site showing the site pages for visitors and providing search engines with page links.

SiteMap Type set as HTML SiteMap appears as $siteMapType="html";.

Text SiteMap

Generates a text SiteMap which is suitable as an alternative site map format for some search engines.

SiteMap Type set as Text SiteMap appears as $siteMapType="text";.

Sitemaps Protocol

Generates a SiteMap in the Sitemaps Protocol XML format.

SiteMap Type set as Sitemaps Protocol appears as $siteMapType="sitemapsprotocol";.

The Sitemaps Protocol is designed to be supported by major search engines.

Include URLs with

Only URLs that include these character combinations will be used. Each character combination must be separated by a comma (ie ,). Standard character combinations to include would be / to include all files or .htm, .php to use urls with .htm or .html and .php extensions and not other file types ie .gif .css etc. URLs that match the site domain home page are included by default.

$incUrls="/"; is the standard default value.

Exclude URLs with

Only URLs that do not include these character combinations will be used. Each character combination must be separated by a comma (ie ,). Standard character combinations to exclude would be .css,.jpg,.png,.svg,.js,.ico to exclude image and style files. This test is applied after the Include URL's test.

$excUrls=".css,.jpg,.png,.svg,.js,.ico"; is the standard default value.

Depth

Sets the page depth applied. A depth of 0 will extract links only from the Start URLs. A depth of 1 will also extract links from the links found in the Start URLs. This process continues until the set Depth or Links limit is reached.

$depthNum=1; is the standard default value.

Limit

Sets the maximum number of links extracted. Once the number of links extracted (checked) exceeds the Limit value no further pages will be examined for links regardless of the Depth set.

$limitNum=1000; is the standard default value.

Delay

This is the time in seconds the program waits before extracting links from each page. Processing pauses for this duration decreasing the load on the server but increasing the running time.

$delaySec=0.1; is the standard default value.

Include Date Last Modified

Include the Last Modified Date of the url file in the generated SiteMap. To use this feature your server must include a Last-Modified: date in the response headers when the url file is requested.

To include a Last-Modified: date in the response headers when your url file is requested add <?php header("Last-Modified: ".gmdate("D, d M Y H:i:s", getlastmod())." GMT"); ?> to the very top of your web page (above all other code) so that when the page is called the server returns the Last-Modified: date. If a Last-Modified: date is not returned by your server the current UTC/GMT date/time will be applied.

$urlLastMod=""; is the standard default value which is false. To apply set $urlLastMod="true";.

Sort URL's

Sorts the url's in the SiteMap in alphabetical order.

$urlSort=""; is the standard default value which is false. To apply set $urlSort="true";.

Include Title

Includes the contents of the title tag in the SiteMap for each url if available. Not applicable for Google SiteMaps.

When set this variable results in the full content of the url file being retrieved. Due to web page size, encoding and content variations this may have an adverse effect on the site crawl. It is recommended that the performance implications of using this feature be assessed prior to site map submission.

$urlTitle=""; is the standard default value which is false. To apply set $urlTitle="true";.

Include Description

Includes the contents of the description tag in the SiteMap for each url if available. Not applicable for Google SiteMaps.

When set this variable results in the full content of the url file being retrieved. Due to web page size, encoding and content variations this may have an adverse effect on the site crawl. It is recommended that the performance implications of using this feature be assessed prior to site map submission.

$urlDesc=""; is the standard default value which is false. To apply set $urlDesc="true";.

Include Url

Includes the URL value as displayed text. Only applicable for HTML SiteMaps.

$urlUrl=""; is the standard default value which is false. To apply set $urlUrl="true";.

Include Count

Includes a count number for each URL. Only applicable for HTML SiteMaps.

$urlCount=""; is the standard default value which is false. To apply set $urlCount="true";.

Full HTML

When selected the generated HTML SiteMap is a complete valid web page and can be displayed as a stand alone document. When not selected the generated HTML SiteMap is content only and should be included within an existing web page. Only applicable for HTML SiteMaps.

$htmlFull="true"; is the standard default value which is false. To apply set $htmlFull="true";.

HTML Title Tag

This is the tag type that surrounds the Title in a HTML SiteMap when you Include Title. The default value is 'p' a paragraph tag. Only applicable for HTML SiteMaps.

$htmlTitleTag="p"; is the standard default value.

HTML Description Tag

This is the tag type that surrounds the Description in a HTML SiteMap when you Include Description. The default value is 'p' a paragraph tag. Only applicable for HTML SiteMaps.

$htmlDescTag="p";"; is the standard default value.

For URLs with

URLs that include these character combinations will use the corresponding Set Priority and Set Change Frequency. Each character combination must be separated by a comma (ie ,). Only applicable for Google SiteMaps.

A value of page.html appears as $urlVals="page.html";. If required this variable can be directly edited using a text editor.

The standard default value is $urlVals="";

Set Priority as

The Set Priority will be applied to corresponding For URLs. Each Set Priority value must be one of the numbers 1.0 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.3 0.2 0.1 0.0, each value must be separated by a comma (ie ,). Only applicable for Google SiteMaps.

$priVals=""; is the standard default value.

To apply a value of 0.1 set $freqVals="0.1";. There must be a corresponding value set in $urlVals="";

Set Change Frequency as

The Set Change Frequency will be applied to corresponding For URLs. Each Set Change Frequency value must be one of the values always hourly daily weekly monthly yearly never, each value must be separated by a comma (ie ,). Only applicable for Google SiteMaps.

$freqVals=""; is the standard default value. To apply a value of daily set $freqVals="daily";. There must be a corresponding value set in $urlVals="";

Default Priority

Default Priority is used for any URL that does not match a For URLs character combination. Default Priority value must be one of the numbers 1.0 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.3 0.2 0.1 0.0. Only applicable for Google SiteMaps.

$priDef="0.5"; is the standard default value..

Default Change Frequency

Default Change Frequency is used for any URL that does not match a For URLs character combination. Default Change Frequency value must be one of the values always hourly daily weekly monthly yearly never. Only applicable for Google SiteMaps.

$freqDef="weekly"; is the standard default value when b>. To apply a value of daily set $freqDef="daily";.

Trouble Shooting

SiteMap XML Dynamic SiteMap Generator runs directly in your browser. Your browser must support JavaScript and the Document Object Model. All current browsers support these features. Ensure you have current browser with JavaScript enabled.

Dynamic SiteMap Code uses php coding and must be run from a server that supports php, all standard web servers support php. If php code displays in your browser when it is run from your server.

Make sure all your variable values are correct. This includes the case of letters, A is not the same as a.

Ensure your web site pages are valid and there are no broken links. Errors in html code will break pages, negativly impact on search engine indexing and crawling. Check page validity at w3 validator.

Depending on your browser, the structure/size of your site and the settings used for your SiteMap you may receive a Unresponsive Script prompt. This is simply a prompt giving you an exit option. Allow the script to continue processing to complete the SiteMap. Setting the Depth and Limit to the lowest values that will fully index the site will minimize processing time. Including the Last Modified Date, Title or Description in a SiteMap increases the processing time.

For test purposes Dynamic SiteMap Code variables can be set using Get variables appended to the dynamic sitemap url. https://mydomain.com/sitemap.php?depthNum=2&limitNum=2000 sets the depth to 2 and the limit to 2000. It is not recommended to use Get variables in urls for search engine submission, variables should be hard coded into the file.