Path

ez projects / all2egooglesitemaps


Google Sitemaps

UNIX name Owner Status Version Compatible with
all2egooglesitemaps Norman Leutner planning 1.0.0 4.x (PHP 5)
Cronjob based XML Sitemap generation for the Google Webmaster tools

Description:

This extension creates an XML sitemap of an eZ Publish installation for the Google webmaster tools (https://www.google.com/webmasters/tools/) and other services using a cronjob.

Installation:

  • Install the extension
  • Test the extension via command line
  • Set up the crontab
  • Add the site map using the Google Webmaster tools

Installing the extension:

Download the latest release:
http://projects.ez.no/all2egooglesitemaps/downloads

Just copy the extension to your eZ Publish extension directory and activate the it by adding the following lines to your site.ini.append.php

[ExtensionSettings]
ActiveExtensions[]=all2egooglesitemaps

After activation the extension you should be able to generate the site map using the runcronjobs.php script.

bash# php runcronjobs.php googlesitemaps
 
Running cronjob part 'googlesitemaps'
Running extension/all2egooglesitemaps/cronjobs/generate.php
Generating Sitemap...
 
Sitemap has been generated!

This will create a file called sitemap.xml within your eZ Publish root directory.

Please ensure that your Apache rewrite rules permit access to the XML File when accessing like http://www.all2e.com/sitemap.xml

This can be done by adding the following lines to your .htaccess or Apache configuration file:

RewriteRule ^sitemap.xml - [L]

After these steps are finished you might add the script to your crontab so it will be generated frequently. You should also take a look at the googlesitemaps.ini.append.php configuration file.

Please provide your feedback here or contact us directly on all2e.com

Screenshot

No news yet.

This project has no reviews yet. Be the first one to review it!