
Originally Posted by
kiddo
For a shop that is not in the home directory (/store for example), is there a switch as in the previous version to place the sitemap files in the site root?
Thank you
I was able to move it to my store root by changing the includes/classes/sitemapsxml.php file.
find
PHP Code:
$this->savepath = DIR_FS_CATALOG;
$this->base_url = HTTP_SERVER . DIR_WS_CATALOG;
and to make it your store root you would replace them with
PHP Code:
$this->savepath = '/path/to/your/webspace/public_html/';
$this->base_url = HTTP_SERVER . '/';
Then, if your store's sub directory was store/ you need to change
PHP Code:
$header .= ($this->stylesheet != '' ? '<?xml-stylesheet type="text/xsl" href="' . $this->stylesheet . '"?'.'>' . "\n" : "");
to
PHP Code:
$header .= ($this->stylesheet != '' ? '<?xml-stylesheet type="text/xsl" href="store/' . $this->stylesheet . '"?'.'>' . "\n" : "");
replacing store/ with what makes sense in your setup.
that is what I did to make it work.
Let me know if it works for you
Matt
Bookmarks