Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

GoogleXMLSitemap 1.3 path problem


stab

Recommended Posts

I have succesfully installed the Ultimate_SEO_URLSv2x and are trying to install

 

GoogleXMLSitemap 1.3 but I have some problems.

 

 

If I follow the instructions I get this message in:

http://mysite.com/webshop/googlesitemap/index.php

 

ERROR: Google Product Sitemap Generation FAILED!

 

ERROR: Google Category Sitemap Generation FAILED!

 

ERROR: Google Sitemap Index Generation FAILED!

 

Array

(

[QUERY] => Array

(

[PRODUCTS] => Array

(

[sTATUS] => success

[NUM_ROWS] => 3

)

 

[CATEOGRY] => Array

(

[sTATUS] => success

[NUM_ROWS] => 2

)

 

)

 

[sAVE_FILE_XML] => Array

(

[0] => Array

(

[file] => /hsphere/local/home/xxxxx/mysite.com/webshop/googlesitemap/sitemapproducts.xml

[status] => failure

[file_exists] => false

)

 

[1] => Array

(

[file] => /hsphere/local/home/xxxxx/mysite.com/webshop/googlesitemap/sitemapcategories.xml

[status] => failure

[file_exists] => false

)

 

[2] => Array

(

[file] => /hsphere/local/home/xxxxx/mysite.com/webshop/googlesitemap/sitemapindex.xml

[status] => failure

[file_exists] => false

)

 

)

 

)

(and I have set the permission to 777 on the .xml files)

 

BUT

 

If I move the "dummie".xml files inside the googlesitemap folder it works.

but then I get the wrong path to the .xml files:

 

Here is your sitemap index: http://mysite.com/webshop/sitemapindex.xml

Here is your product sitemap: http://mysite.com/webshop/sitemapproducts.xml

Here is your category sitemap: http://mysite.com/webshop/sitemapcategories.xml

 

When the real path is actually: http://mysite.com/webshop/googlesit...itemapindex.xml

 

 

I don't know how to fix this since my PHP skills are not top notch,but it seems like the save path that needs to be redefined somewhere..since this save path is not right....

Or is it the rewrite rules in the.htacess that mess things upp???

 

Options +FollowSymLinks
RewriteEngine On 
RewriteBase /webshop/

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}

 

Patrick.

Link to comment
Share on other sites

Aditional information.

 

If I place the (dummy) .xml files inside the googlesitemap folder and "connect" with the address as follow

http://mysite.com/shop/googlesitemap/sitemapproducts.xml

 

I have a perfect product link with the right keywords.

So I guess I could manually uppload the .xml to google when I add products or change product description.

I'm just conserned about the automated uppdate that's suposed to be done with this contribution.

 

 

Any thoughts????

 

 

Tnx.

Link to comment
Share on other sites

I desided to try and upload the generated sitemaps to google.

I duplicated and moved them to the highest-level directory to which I have access.

 

First the sitemap status was OK but now I got a ERROR in the sitemapindex.xml

 

sitemapindex.xml Sitemap Index Web 9 hours ago 9 hours ago Errors 2

 

When clicking the "error"link I get this

Error Detail

General HTTP error : 404 in Sitemap http://mydomain.com/catalog/sitemapcategories.xml 404 not found

General HTTP error : 404 in Sitemap http://mydomain.com/catalog/sitemapproducts.xml 404 not found

 

What is this???

I interpret the errors as if google can't find the categories and products in catalog as described in the generated.

sitemapcategories.xml and sitemapproducts.xml because of Ultimate_SEO_URLSv2x "link optimization"?????

 

The structure in sitemapproducts.xml is as the illustrated example below:

<urlset>

<url>

<loc>http://mydomain.com/catalog/productname1-p-30.html

</loc>

<lastmod>2006-05-23</lastmod>

<changefreq>weekly</changefreq>

<priority>1.0</priority>

</url>

<url>

<loc>

http://mydomain.com/catalog/productname2-p-29.html

</loc>

<lastmod>2006-05-23</lastmod>

<changefreq>weekly</changefreq>

<priority>1.0</priority>

</url>

<url>

<loc>

http://mydomain.com/catalog/productname3-p-28.html

</loc>

<lastmod>2006-05-23</lastmod>

<changefreq>weekly</changefreq>

<priority>0.5</priority>

</url>

</urlset>

 

 

Could somebody explain this to me please...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...