Submitted by anhmocboc on Wed, 2008-04-02 20:18 in Price Tapestry
I installed Pricetapestry in sub directory "shopping". Some search engine require sitemap.php has to be in root directory. How can I put sitemap.php into root directory?
Thanks
This can be done easily because sitemap.php uses $config_baseHREF to construct the URLs in the sitemap. However, because of the way the common include file works (includes/common.php) it will be necessary to include the required files individually instead.
To do this, make your copy of sitemap.php in your root directory, but replace the following code (line 2):
Hi,
This can be done easily because sitemap.php uses $config_baseHREF to construct the URLs in the sitemap. However, because of the way the common include file works (includes/common.php) it will be necessary to include the required files individually instead.
To do this, make your copy of sitemap.php in your root directory, but replace the following code (line 2):
require("includes/common.php");
with the following:
require("shopping/config.php");
require("shopping/includes/database.php");
That should do the trick!
Cheers,
David.