XML Sitemaps Generator

Author Topic: Searches being indexed as pages  (Read 8596 times)

madeleine

  • Registered Customer
  • Approved member
  • *
  • Posts: 4
Searches being indexed as pages
« on: August 29, 2012, 09:18:47 AM »
I've just launched an opencart site and have used the standalone generator to produce a sitemap for the site.  The generator is showing 8328 pages on the site, when I only have 240 products and maybe 20 other pages in total.  When I look at the site map it is showing hundreds of search pages which can't be right surely.  Can anyone tell me how to stop it doing this?
Plus I've just realised that even though the sitemap.xml file is being written to by the generator, as I can see the content when I view it with notepad+, it can't be accessed by the search engines and I get a 404 when trying to access it myself. 
You can view the problem at [external links are visible to admins only].
« Last Edit: August 29, 2012, 09:25:53 AM by madeleine »

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10625
Re: Searches being indexed as pages
« Reply #1 on: August 30, 2012, 03:16:52 AM »
Hello,

do you have .htaccess file in your site root folder? If yes, what is its content?
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

madeleine

  • Registered Customer
  • Approved member
  • *
  • Posts: 4
Re: Searches being indexed as pages
« Reply #2 on: August 30, 2012, 09:13:53 AM »
Yes I do.  Here are the contents:

# 1.To use URL Alias you need to be running apache with mod_rewrite enabled.

# 2. In your opencart directory rename htaccess.txt to .htaccess.

# For any support issues please visit: [external links are visible to admins only]

Options +FollowSymlinks

# Prevent Directoy listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "\.(tpl|ini|log)">
 Order deny,allow
 Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/

RewriteBase /
RewriteRule sitemap.xml /index.php?route=feed/google_sitemap
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

### Additional Settings that may need to be enabled for some servers
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.

# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
# php_flag register_globals off

# 2. If your cart has magic quotes enabled, This may work to disable it:
#php_flag magic_quotes_gpc Off

# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
# php_value upload_max_filesize 999M

# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value post_max_size 999M

# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_execution_time 200

# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_input_time 200

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10625
Re: Searches being indexed as pages
« Reply #3 on: September 01, 2012, 08:00:11 PM »
You would need o remove this line:
RewriteRule sitemap.xml /index.php?route=feed/google_sitemap
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

madeleine

  • Registered Customer
  • Approved member
  • *
  • Posts: 4
Re: Searches being indexed as pages
« Reply #4 on: September 11, 2012, 01:44:06 PM »
Hi, sorry for the delay in replying but I got distracted with other stuff.  I changed the .htaccess as instruted but it didn't seem to make much difference.  The crawl went on for hours and to date when I interrupted it it reckoned that it had found 21743 pages, 21729 of which it has added to the sitemap.  That can't be right surely?  Would it be because I only commented out the line instead of removing it all together?

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10625
Re: Searches being indexed as pages
« Reply #5 on: September 12, 2012, 08:36:15 PM »
Hello,

I've updated your crawler settings, please check now.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

madeleine

  • Registered Customer
  • Approved member
  • *
  • Posts: 4
Re: Searches being indexed as pages
« Reply #6 on: September 13, 2012, 07:19:41 AM »
That worked perfectly.  Thank you.

te3p.com

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
Re: Searches being indexed as pages
« Reply #7 on: October 18, 2012, 11:34:55 AM »
Thank you ...

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2