![]() |
Simple Sitemap Script
Here's a simple script to generate a quick sitemap and url list from your x-cart install. This script only does the basic categories and products. I made this one because I was sick of all the other sitemap generators indexing thousands of pages for 50 products. Hope this helps someone. :mrgreen:
PHP Code:
|
Re: Simple Sitemap Script
Ok. And what can one do with it ???
(i am a nerd :) |
Re: Simple Sitemap Script
Quote:
Well if you make a php file with the above code and load it into your root of your x-cart and then call the php script it will give you a URL list and a Sitemap URL Entries for your site. All you need to do is fill in your site information in the php code: # MySQL Info $mysql_host = 'localhost'; # MySQL Host Name $mysql_user = 'username'; # MySQL Username $mysql_pass = 'password'; # MySQL Password $mysql_db = 'database_name'; # MySQL Database # The Full URL to Your Webstore - INCLUDING THE TRAILING SLASH $base_url = 'http://www.shishapipe.net/shopcart/'; Once you have done this and then saved the php file, say call it site_map.php and then run this on your site. You can see an example at http://www.shishapipe.net/shopcart/site_map.php |
Re: Simple Sitemap Script
Quote:
And if to do so? PHP Code:
|
Re: Simple Sitemap Script
Shisha,
That link to your site_map.php is dead. Error 404. |
All times are GMT -8. The time now is 12:36 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.