This is my answer to a Question on Support site for LampCMS project
First in your www/w directory create subdirectory called 'sitemap'
Make it writable.
Second - from command like issue this command
/path/to/your/php /path/to/your/lampcms/sitemap.php
Here /path/to/your/php is the path to your executable php (cgi version of php) file - usually it is not the same php as used by your web server.
On Windows it will be php.exe file, on Linux it is an executable php file installed with your php installation.
If it does not work look in your logs/cli-php.log file
It should generate the sitemap and index file in the www/w/sitemap/ directory
It will also ping Google, Bing and Yahoo with the locations of you sitemap
If it works then you may want to add this command to your cron file to be executed every day or every week.
You may also add the location of your w/sitemap/index.xml to your robots.txt file
Just add something like this to your robots.txt
Sitemap: http://yoursite.com/w/sitemap/index.xml
No comments:
Post a Comment