Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SEO Sitemap contribution - Important Issues


Recommended Posts

Hello Everyone,

I have installed this mod, and everything looks good. No errors, etc, but when typed in the address bar

 

/sitemap_categories.html? -------> I got /index.php

/sitemap_products.html ----------> I got index.php

/sitemap_categories.php --------> index.php

/sitemap_products.php -----------> index.php

/index.html ------------------------> index.php

 

So everything is redirected to index.php. The cart itself works as usual.

here is the link

http://www.apadirect.com/demo/index.php

 

I have used the .htaccess file as indicated, but no sure if it is ok.

 

Thanks for your time.

Far

 

That's how it should work *after* you comment the originally commented out redirect in the .js file.

If you are still testing it and don't wanna be redirected make sure the redirect line in the .js is commented out like in the original archived file.

Edited by dr_lucas
Link to comment
Share on other sites

  • Replies 72
  • Created
  • Last Reply

Top Posters In This Topic

The contribution suggest that it is needed to disable the "Prevent Spiders Sessions".

I prefer to keep it enabled.

Does anyobdy know if there is any problem or disadvantage in doing that while using the SEO Sitemap contribution?

Link to comment
Share on other sites

I added the SEO sitemap contribution and have run into a problem

 

mydomain.com now has 2 blue boxes

and when I try to go to the urls with .html I get the same thing...

 

The only way I can find my main page is to enter mydomain.com/index.php

 

Any ideas? I have added the .htaccess redirect and made the changes in the sitemap.js file....

 

THanks for your help

Link to comment
Share on other sites

  • 1 month later...

I'm try to get this work but I have little experience with .htaccess so it is hanging me up. I've installed and and it works through step 4

But I have no idea what Step 5 is telling me
Modify your .htaccess file to include the rewrite rules.

    You will probably need to modify the rewrite rule for the products

    to conform to your method of assigning product_id

Can anyone explain what this means? If you could post a working file that would probably help.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Ahh, thanks John. I contacted my host and asked them to change mod_rewrite, which they did. I also sent them this line from the instructions

Make sure in httpd.conf AllowOverride All is in <Directory> for your website
and asked if they could set that too. But they said they couldn't do it since it affects other customers and suggested I add it to the .htaccess file. So I tried it but I get an Internal Server Error message. Will it work do it this way? Can someone please take a look at my .htaccess file to see if it is setup correctly?
<Directory /home/ptcandy/public_html/shop>
AllowOverride All
</Directory> 

RewriteEngine on
Options +FollowSymlinks
DirectoryIndex home.html home.php index.php index.html
AddType application/x-httpd-php php php4 php3 html htm
RewriteRule ^sitemap_categories.html$ sitemap_categories.php [L]
RewriteRule ^sitemap_products.html$ sitemap_products.php [L]
RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index.php?cPath=$1_$2_$3_$4_$5_$6 [L]
RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index.php?cPath=$1_$2_$3_$4_$5 [L]
RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index.php?cPath=$1_$2_$3_$4 [L]
RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index.php?cPath=$1_$2_$3 [L]
RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index.php?cPath=$1_$2 [L]
RewriteRule ^category_([1-9][0-9]*)\.html$ index.php?cPath=$1 [L]
RewriteRule ^product_([1-9][0-9]*)\.html$  product_info.php?&products_id=$1 [L]

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

OK, I've finally got this running. Turns out to be a problem with my host. Anyway, has anyone who has this installed ran their site through a spider testing site? The directions say to turn off Prevent Spider Session but when I test my site, the SID's are showing up.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

  • 2 weeks later...

First of all if I were you guys I'd remove the JS redirect and the onmouseovers and make it a real sitemap..

 

Now my question, does anyone know how to get the sitemap products page to span pages?

 

I use this contrib because saves me adding new products to the sitemap page but it will just timeout with too many products and needs the ability to span pages.

 

Anyone got any ideas?

Link to comment
Share on other sites

  • 2 months later...

Hopefully someone is still responding here. I am having a problem - I installed the contribution and most of it seems to be working. Except my index.html file doesn't seem to be right. I don't know what's wrong or how to fix it. Instead of getting an index.html file, I get something that tries to download (like an executable or something) then opens up in a browser as just 2 buttons with nothing much else there. I looked at the source code and there is still some php code floating around in it. Any ideas? You can see it at:

 

http://www.ramktichen.com/cart/catalog/index.html

 

Thanks,

 

Mike

Link to comment
Share on other sites

Hopefully someone is still responding here. I am having a problem - I installed the contribution and most of it seems to be working. Except my index.html file doesn't seem to be right. I don't know what's wrong or how to fix it. Instead of getting an index.html file, I get something that tries to download (like an executable or something) then opens up in a browser as just 2 buttons with nothing much else there. I looked at the source code and there is still some php code floating around in it. Any ideas? You can see it at:

 

http://www.ramktichen.com/cart/catalog/index.html

 

Thanks,

 

Mike

 

Duh - I can't even type my own website right.

 

http://www.ramkitchen.com/cart/catalog/index.html

 

Thanks,

 

Mike

Link to comment
Share on other sites

<?PHP

// $Id: index.html,v 1.5 2003/09/16 09:14:42 Administrator Exp $

// ----------------------------------------------------------------------

// POST-NUKE Content Management System

// Copyright © 2002 by the PostNuke Development Team.

// http://www.postnuke.com/

// ----------------------------------------------------------------------

// Based on:

// PHP-NUKE Web Portal System - http://phpnuke.org/

// Thatware - http://thatware.org/

// ----------------------------------------------------------------------

// LICENSE

//

// This program is free software; you can redistribute it and/or

// modify it under the terms of the GNU General Public License (GPL)

// as published by the Free Software Foundation; either version 2

// of the License, or (at your option) any later version.

//

// This program is distributed in the hope that it will be useful,

// but WIthOUT ANY WARRANTY; without even the implied warranty of

// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

// GNU General Public License for more details.

//

// To read the license please visit http://www.gnu.org/copyleft/gpl.html

// ----------------------------------------------------------------------

// Original Author of file: Hartmut K?nig ([email protected])

// Purpose of file:  SEO

// ----------------------------------------------------------------------

 

  require('includes/application_top_sitemap.php');

 

  include('includes/sitemap_includes.php');

 

 

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<HTML>

<HEAD>

 

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo SITEMAP_TITLE; ?></title>

<meta name="Keywords" content="<?php echo SITEMAP_KEYWORDS; ?>">

<meta name="Description" content="<?php echo SITEMAP_DESCRIPTION; ?>">

<META NAME="coverage" CONTENT="Worldwide">

<META NAME="robots" CONTENT="index,follow">

<META NAME="country" CONTENT="<?php echo SITEMAP_COUNTRYCODE; ?>">

<META NAME="author" CONTENT="<?php echo SITEMAP_AUTHOR; ?>">

<META NAME="organization-Email" CONTENT="<?php echo SITEMAP_EMAIL; ?>">

<META NAME="copyright" CONTENT="<?php echo SITEMAP_COPYRIGHT; ?>">

 

<base href="<?php echo  HTTP_SERVER . DIR_WS_HTTP_CATALOG; ?>">

 

<?PHP

 

    //-- All non-spiders will be redirected to true home page

    redirectBrowser();

 

?>

 

<style type="text/css">

<!--

 

H1 {

    font-family:Verdana, Arial, Helvetica, sans-serif;

    font-size:10pt;

    color: #000000;

    }

-->

</style>

 

</HEAD>

<BODY>

<h1>

<a href="<?PHP echo SITEMAP_DOMAIN; ?>" onMouseOver="redirectBrowser()"><?PHP echo SITEMAP_TITLE; ?></a>

<br><br>

</h1>

 

<a href="sitemap_products.html" onMouseOver="redirectBrowser()">

<img src="pixel.gif" width="10" height="12" alt="<?PHP echo SITEMAP_TITLE; ?>"><b><?PHP echo SITEMAP_TITLE; ?></b></a><br />

<a href="sitemap_categories.html" onMouseOver="redirectBrowser()">

<img src="pixel.gif" width="10" height="12" alt="<?PHP echo SITEMAP_DESCRIPTION; ?>"><b><?PHP echo SITEMAP_DESCRIPTION; ?></b></a><br />

 

 

<b><?php echo  SITEMAP_KEYWORDS; ?></b><br />

<h1><?php echo SITEMAP_DESCRIPTION; ?></h1>

<h1><?php echo SITEMAP_KEYWORDS; ?></h1>

<a href="sitemap_categories.html"><?php echo SITEMAP_CATEGORYLIST; ?></a><br />

<a href="sitemap_products.html"><?php echo SITEMAP_PRODUCTLIST; ?></a><br />     

<?php echo SITEMAP_LINKS; ?>

 

</body>

</HTML>

 

here is a copy of a working index.html

Its not a computer its a life management system!

Link to comment
Share on other sites

  • 1 month later...

concerning google and its dislike for redirects... will the javascript redirect affect ranking in anyway? or raise the possibility of being penalized or worse banned?

 

I know the question has been asked a few times, but i havent seen a definitive answer to this question.

 

If so, then is there another option for creating a search engine friendly sitemap?

 

Any insite would be appreciated

Edited by Redlining13
Link to comment
Share on other sites

  • 3 weeks later...

I have installed this contribution many times and most times it works. But on some hosts, the two blue boxes mentioned by several others appear when index.html is accessed. From what I have been able to determine, it appears to be caused by the order the host has set for accessing files (index.html before index.php for example). I have not been able to find a way around this though. I've tried altering the .htaccess entry to account for this but it didn't help. Does anyone have any suggestions for solving this?

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

  • 4 weeks later...
I have installed this contribution many times and most times it works.

...

geez Jack...this contribution defines the term "cloaking" and you still use it for client sites? I thought we wear white hats around here? :)

 

Bobby

Link to comment
Share on other sites

  • 11 months later...

Great contribution. I checked it by googlebot simulator: Visible text to web page size ratio: index.php - 7,4% against index.html - 47.22%. One question: Is it possible to add images derectory to SEO sitemap?

Thank you.

Link to comment
Share on other sites

  • 10 months later...

I'm having the same issues. Good luck finding answers in this forum. So far I've had to debug every contribution I've downloaded. If I get this fixed I'll post the results, but I'm ready to shit can this thing.

Link to comment
Share on other sites

Hi guys

 

i was having no problem with the sitemap_categories.html or sitemap_products.html viewing after install (they were 100% ok)

 

But for index.html it wouldn't show correctly and include the sitemap_includes.php info i.e SITEMAP_DOMAIN etc (if it had worked correctly it would have included the SITEMAP_DOMAIN details etc without a problem)

 

i have to change the index.html to home.php and change my htaccess file to include one more line :

 

RewriteRule ^index.html$ home.php [L]

 

i changed of course the index.html to name home.php before i edited the htaccess with the above line.(home.php was used to steer clear of conflicts lol)

 

As stated before the sitemap_xxxxx.html was working 100% as per the instructions but the index.html just never worked for me :(

 

doing the above actions rectified this and i hope that others might use this info to good use too :)

 

WBR

 

Nicky Duffy

 

www.phantomgsm.com

 

you can see the SEO Sitemap working at www.phantomgsm.com/index.html

www.phantomgsm.com/sitemap_categories.html

www.phantogsm.com/sitemap_products.html

 

any questions > [email protected] pls mention this modification :)

 

p.s i also had to modify the includes/configure.php with FILENAME_INDEX value (index.php) to make this work 100%

 

 

Thanks but I've seen 404 errors before...

Link to comment
Share on other sites

I added the SEO sitemap contribution and have run into a problem

 

mydomain.com now has 2 blue boxes

and when I try to go to the urls with .html I get the same thing...

 

The only way I can find my main page is to enter mydomain.com/index.php

 

Any ideas? I have added the .htaccess redirect and made the changes in the sitemap.js file....

 

THanks for your help

 

 

Having same problem. Good luck finding a solution here - just a lot of unanswered questions floating around! You would think the guy who wrote this would lend a hand.

Link to comment
Share on other sites

Duh - I can't even type my own website right.

 

http://www.ramkitchen.com/cart/catalog/index.html

 

Thanks,

 

Mike

 

If you replace AddType "application x-httpd-php php php4 php3 html htm" with "AddType x-httpd-php php php4 php3 html htm"

you'll get rid of the download box, although I'm still having the issue of the index.html not rendering the php properly.

Link to comment
Share on other sites

I have installed this contribution many times and most times it works. But on some hosts, the two blue boxes mentioned by several others appear when index.html is accessed. From what I have been able to determine, it appears to be caused by the order the host has set for accessing files (index.html before index.php for example). I have not been able to find a way around this though. I've tried altering the .htaccess entry to account for this but it didn't help. Does anyone have any suggestions for solving this?

 

Jack

 

I'm having the same issues. Good luck finding answers in this forum. So far I've had to debug every contribution I've downloaded. If I get this fixed I'll post the results, but I'm ready to shit can this thing.

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...