Guest Posted July 27, 2004 Share Posted July 27, 2004 Hi, I'm having a bit of trouble with my install of SEO Sitemap. I'm brand new to all this programming jargon, its been a 'learn as you go' process, but this is the first contribution I haven't been able to figure out by reading the forums. I've gotten this far: My two php pages show up like they are supposed to. My two html pages show up like they're supposed to. Here's where I'm stuck: The links on the html pages don't go anywhere when they are clicked on. The index.html page is blank. Can someone tell me where to find httpd.conf. As I couldn't find it, I haven't yet made the 'override' change that the instructions ask for, which is most likely my problem!!! Thanks, Patti Quote Link to comment Share on other sites More sharing options...
Guest Posted July 27, 2004 Share Posted July 27, 2004 do you have access to your unix shell? if not you will need to discuss with your host what you should/can do. Quote Link to comment Share on other sites More sharing options...
Guest Posted August 1, 2004 Share Posted August 1, 2004 Thanks! I did contact my host and this is their response! "Please be advised that "httpd.conf. AllowOverride All" is a file that would have to be created on your end and then uploaded to your space on our serv er. You are welcome to try installing your contribution however it is not guaranteed that httpd.conf. AllowOverride All is going to work on our serve r as this feature is not widely supported." Any idea on how to create it? Or what level to upload it to the server(Root?)? Is there an alternative to get SEO Sitemap up and running? Any help appreciated,Patti Quote Link to comment Share on other sites More sharing options...
xpetex Posted August 18, 2004 Share Posted August 18, 2004 anyone got any help on this? Im in the same boat.. when I upload my .htaccess I get a 500 internal server error for my whole site!! PLEASE HELP Quote Link to comment Share on other sites More sharing options...
Guest Posted December 15, 2004 Share Posted December 15, 2004 Hi, I'm having a bit of trouble with my install of SEO Sitemap. I'm brand new to all this programming jargon, its been a 'learn as you go' process, but this is the first contribution I haven't been able to figure out by reading the forums.I've gotten this far: My two php pages show up like they are supposed to. My two html pages show up like they're supposed to. Here's where I'm stuck: The links on the html pages don't go anywhere when they are clicked on. The index.html page is blank. Can someone tell me where to find httpd.conf. As I couldn't find it, I haven't yet made the 'override' change that the instructions ask for, which is most likely my problem!!! Thanks, Patti <{POST_SNAPBACK}> Did you manage to install this mod ok as I am stuck in the same place you were. Can you help??? Many Thanks Julian Quote Link to comment Share on other sites More sharing options...
boxtel Posted December 16, 2004 Share Posted December 16, 2004 Thanks! I did contact my host and this is their response!"Please be advised that "httpd.conf. AllowOverride All" is a file that would have to be created on your end and then uploaded to your space on our serv er. You are welcome to try installing your contribution however it is not guaranteed that httpd.conf. AllowOverride All is going to work on our serve r as this feature is not widely supported." Any idea on how to create it? Or what level to upload it to the server(Root?)? Is there an alternative to get SEO Sitemap up and running? Any help appreciated,Patti <{POST_SNAPBACK}> httpd.conf is the apache configuration file. If you are on a shared server you have no access to it. You can then only upload .htaccess files to your own directories. These .htaccess files are extentions to httpd.conf and are read everytime a user requests one of your page. They are only read if your host has defined allowOverride options or all. if it is set to none, the .htaccess files are ignored. So using .htaccess slows the server somewhat but increases flexibility because any changes in those files do not require a server restart as it does when changing the general httpd.conf file. as such the response above is very murky, what they should have responded is that you need to create the .htaccess file and upload it to your relevant directory. Quote Treasurer MFC Link to comment Share on other sites More sharing options...
Guest Posted December 17, 2004 Share Posted December 17, 2004 (edited) Hi, I'm having a bit of trouble with my install of SEO Sitemap. I'm brand new to all this programming jargon, its been a 'learn as you go' process, but this is the first contribution I haven't been able to figure out by reading the forums.I've gotten this far: My two php pages show up like they are supposed to. My two html pages show up like they're supposed to. Here's where I'm stuck: The links on the html pages don't go anywhere when they are clicked on. The index.html page is blank. Can someone tell me where to find httpd.conf. As I couldn't find it, I haven't yet made the 'override' change that the instructions ask for, which is most likely my problem!!! Thanks, Patti <{POST_SNAPBACK}> I am having the same trouble, just when I thought I had it all worked out this little treasure comes along and bites me in the a***!! >_< This is my new .htaccess file that I have uploaded to my server 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] What is it exactly I have to change because at the moment each time I try to open a page I get the download dialogue box which means I cannot access pages. Any help or guidance would be appreciated. Thanks in advance! :'( Edited December 17, 2004 by MarkR Quote Link to comment Share on other sites More sharing options...
khamidovic Posted February 17, 2005 Share Posted February 17, 2005 I am having the same trouble, just when I thought I had it all worked out this little treasure comes along and bites me in the a***!! >_< This is my new .htaccess file that I have uploaded to my server 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] What is it exactly I have to change because at the moment each time I try to open a page I get the download dialogue box which means I cannot access pages. Any help or guidance would be appreciated. Thanks in advance! :'( <{POST_SNAPBACK}> Help! I really want to use this contribution but something doesn't seem to work correctly. I think it is the rewrites in my .htaccess file... could it be an issue as stated in the install_en.txt file: 5. 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 Everything seems fine until I get to step # 8 in the install file: Confirm that the rewrite is functioning correctly http://www.yoursite.com/product_info.php?product_id=12345 The whole /product_info.php? part doesn't seem to be liked by my site. So I am assuming that maybe I need to change the rewrite rules for the products in .htaccess... anyone have any idea what I should do? If I put something like http://www.yoursite.com/product_info.php?product_id=45 I see one of my website pages but it says product not found. So I am assuming that it is a naming convention thing... I also have the Ultimate SEO URLs installed, so not sure if there are issues between the two. I am figuring because Ultimate SEO URLs use naming conventions for categories and products that are different than the ones used when testing (and using?) the SEO sitemap... that this is where the problem may lie. For instance, with Ultimate SEO URLs one of my products is /single-stroller-cover-pink-yellow-or-red-trim-p-45.html but with SEO sitemap the rewrite does something like this: /product_info.php?product_id=12345 Any ideas what I should change? I heard that the Ultimate SEO URLs, the SEO Sitemap and the Header Tags Controller contributions are the ultimate 3 for seo purposes... it is just a problem to get them all working together nicely.... ***Also, what is the scoop with: 13. In the OSC Admin Configuration/Session panel set "Prevent Spider Sessions" to "false". Shouldn't this be set to true? That is what is recommended by everyone else and I really don't want spider sessions. Thanks, Kathy Quote Link to comment Share on other sites More sharing options...
Guest Posted February 17, 2005 Share Posted February 17, 2005 Kathy, I know of several sites that have all 3 contributions installed and working nicely together. I uploaded a version of the sitemap that is compatible with SEO URLs. However, I did not modify the .htaccess file and merely uploaded a modified class. The modified class merely returns a full cPath to tep_href_link() instead of the default categories_id (SEO URLs needs the full cPath). So, merge the 2 .htaccess files and all should be well. There are no conflicts between the rewrite rules ( * that I know of * ). Bobby Quote Link to comment Share on other sites More sharing options...
khamidovic Posted February 17, 2005 Share Posted February 17, 2005 Kathy, I know of several sites that have all 3 contributions installed and working nicely together. I uploaded a version of the sitemap that is compatible with SEO URLs. However, I did not modify the .htaccess file and merely uploaded a modified class. The modified class merely returns a full cPath to tep_href_link() instead of the default categories_id (SEO URLs needs the full cPath). So, merge the 2 .htaccess files and all should be well. There are no conflicts between the rewrite rules ( * that I know of * ). Bobby <{POST_SNAPBACK}> Hi, I noticed that you uploaded a compatible class to Sitemap MS2-2.2 but nothing under the SEO Sitemap contribution (the snakeseo one)... I think I had seen a post from you a while back that had list the header tags, the Ultimate SEO URLs and the SEO Sitemap as the 3 seo contributions to use... did you actually mean Sitemap MS2-2.2? Or did you mean to add the mode to SEO Sitemap... now I am confused. Both sitemaps work a little differently I think... The Sitemap MS2 2.2 actually displays a sitemap on a website that can also be used for and visitors to the site... the SEO Sitemap is mainly for the spiders and is not seen by regular visitors... it also uses redirects and things... which one should I be using for the best seo benefit? Thanks Bobby! Quote Link to comment Share on other sites More sharing options...
Guest Posted February 17, 2005 Share Posted February 17, 2005 Kathy, My opinion, and it is just my opinion, is that presenting different page content to spiders versus live visitors is cloaking and is a black hat technique. Thus, the sitemap you have installed is not my recommended choice of contributions. Further, a sitemap is for customers and may help spiders index the complete site...but, in reality would you rather have a contact_us page for customer landing or a product info page? In light of this I usually recommend to clients an all_products contribution since that is the meat of the store. Everyone will have their opinion and the above is mine. Remember, I can be and am frequently wrong. :) Bobby Quote Link to comment Share on other sites More sharing options...
khamidovic Posted February 17, 2005 Share Posted February 17, 2005 Kathy, My opinion, and it is just my opinion, is that presenting different page content to spiders versus live visitors is cloaking and is a black hat technique. Thus, the sitemap you have installed is not my recommended choice of contributions. Further, a sitemap is for customers and may help spiders index the complete site...but, in reality would you rather have a contact_us page for customer landing or a product info page? In light of this I usually recommend to clients an all_products contribution since that is the meat of the store. Everyone will have their opinion and the above is mine. Remember, I can be and am frequently wrong. :) Bobby <{POST_SNAPBACK}> Hi Bobby, thanks for getting back to me and clearing things up... I thought that the SEO Sitemap seemed a little dodgy and I agree about everything you said. I have the Sitemap mS2- 2.2 installed and would love to install the all products contribution (are there various types? what exact one should I be looking for or by who?). So for all the confusion, I just could have sworn that I had read that you had suggested the SEO Sitemap in a past post (I came across it again today but can't find it again right now to quote it) and thought that the snakeseo one was the one you meant as its contribution name is SEO Sitemap... so know I know which one you prefer. So having the Sitemap ms2 and installing the all products contribution should be what I need. Sounds good. Thanks for everything! Kathy Quote Link to comment Share on other sites More sharing options...
Guest Posted February 17, 2005 Share Posted February 17, 2005 My preferences: sitemap: http://www.oscommerce.com/community/contributions,2208 all_prods: something like the below code: <?php /* $Id: all_products.php,v 3.0 2004/02/21 by Ingo ([email protected]) osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2004 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); define('NAVBAR_TITLE', 'All Products'); define('HEADING_TITLE', 'All Products'); $breadcrumb->add(HEADING_TITLE, tep_href_link(FILENAME_ALL_PRODUCTS, '', 'NONSSL')); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <title>* Your Site * Product Listing</title> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <style type="text/css"> <!-- h1 {font-family: Verdana, Arial, sans-serif; font-size: 14px; font-weight: bold; } h2 {font-family: Verdana, Arial, sans-serif; font-size: 12px; font-weight: bold; color:#000066; } h3 {font-family: Verdana, Arial, sans-serif; font-size: 10px; font-weight: bold; color:#000066; } h1, h2, h3{margin-bottom:0px; margin-top:0px; line-height: 1em; } --> </style> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><h1>All * a keyword * Products at * your site *.com</h1></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table cellspacing="0" cellpadding="0" border="0" align="center"> <?php $products_query = tep_db_query("SELECT p.products_id, pd.products_name, pc.categories_id FROM " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " pc WHERE p.products_id = pd.products_id AND p.products_id = pc.products_id AND p.products_status = '1' AND pd.language_id = '".(int)$languages_id."' ORDER BY pc.categories_id, pd.products_name"); while($products = tep_db_fetch_array($products_query)) { echo '<tr>' . ' <td><h2><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products['products_id']) . '" title="'.$products['products_name'].'">' . $products['products_name'] . '</a></h2></td>' . '</tr>'; } ?> </table> </td></tr> <tr> <td align="right" class="main"><br> <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> </tr> </table></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Original work done by Ingo and credit goes to him. You can get the full version here: http://www.oscommerce.com/community/contributions,137 To use the above code create a file and save the contents. Link to it from the store. Configure the hardcoded stuff (meta content, page specific styles, main H1 tag, etc). Bobby Quote Link to comment Share on other sites More sharing options...
khamidovic Posted February 17, 2005 Share Posted February 17, 2005 My preferences:sitemap: http://www.oscommerce.com/community/contributions,2208 all_prods: something like the below code: <?php /* ?$Id: all_products.php,v 3.0 2004/02/21 by Ingo ([email protected]) ?osCommerce, Open Source E-Commerce Solutions ?http://www.oscommerce.com ?Copyright (c) 2004 osCommerce ?Released under the GNU General Public License */ ?require('includes/application_top.php'); ? define('NAVBAR_TITLE', 'All Products'); define('HEADING_TITLE', 'All Products'); ?$breadcrumb->add(HEADING_TITLE, tep_href_link(FILENAME_ALL_PRODUCTS, '', 'NONSSL')); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <title>* Your Site * Product Listing</title> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <style type="text/css"> <!-- h1 {font-family: Verdana, Arial, sans-serif; font-size: 14px; font-weight: bold; } h2 {font-family: Verdana, Arial, sans-serif; font-size: 12px; font-weight: bold; color:#000066; } h3 {font-family: Verdana, Arial, sans-serif; font-size: 10px; font-weight: bold; color:#000066; } h1, h2, h3{margin-bottom:0px; margin-top:0px; line-height: 1em; } --> </style> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> ?<tr> ? ?<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> ? ? ? ?<!-- left_navigation //--> ? ? ? ?<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> ? ? ? ?<!-- left_navigation_eof //--> ? ? ?</table></td> ? ?<!-- body_text //--> ? ?<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> ? ? ? ?<tr> ? ? ? ? ?<td><h1>All * a keyword * Products at * your site *.com</h1></td> ? ? ? ?</tr> ? ? ? ?<tr> ? ? ? ? ?<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> ? ? ? ?</tr> ? ? ? ?<tr> ? ? ? ? ?<td><table cellspacing="0" cellpadding="0" border="0" align="center"> ? ? ? ? ? ? ?<?php $products_query = tep_db_query("SELECT p.products_id, pd.products_name, pc.categories_id FROM " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " pc WHERE p.products_id = pd.products_id AND p.products_id = pc.products_id AND p.products_status = '1' AND pd.language_id = '".(int)$languages_id."' ORDER BY pc.categories_id, pd.products_name"); while($products = tep_db_fetch_array($products_query)) { ?echo '<tr>' . ' ? ? ? ? ? <td><h2><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products['products_id']) . '" title="'.$products['products_name'].'">' . $products['products_name'] . '</a></h2></td>' . '</tr>'; ?} ?> </table> </td></tr> ? ? ? ?<tr> ? ? ? ? ?<td align="right" class="main"><br> ? ? ? ? ? ?<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> ? ? ? ?</tr> ? ? ?</table></td> ? ?<!-- body_text_eof //--> ? ?<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> ? ? ? ?<!-- right_navigation //--> ? ? ? ?<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> ? ? ? ?<!-- right_navigation_eof //--> ? ? ?</table></td> ?</tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Original work done by Ingo and credit goes to him. You can get the full version here: http://www.oscommerce.com/community/contributions,137 To use the above code create a file and save the contents. Link to it from the store. Configure the hardcoded stuff (meta content, page specific styles, main H1 tag, etc). Bobby <{POST_SNAPBACK}> Thanks again, I have it installed. I have tried the default all_products.php and yours to compare the look and function of them. Is yours just different in appearances because that is how you want it to look? I have also added a link in my sitemap to all products... under where my categories show... as the categories do not extend out to show the products as it was. So hope this is a good idea. I know that the search engines can find the products via the categories, but also have heard that they don't always like to follow links to far in... so don't know if having all products link in sitemap will matter or not, but at least it looks good for the customers... I am having problems with getting my link in my categories menu (it is a drop down one by weirdlab) but I am sure I can figure it out or will post this problem on the applicable topic, unless you or anyone else has any ideas. Not sure if I am going to stay with that type of menu anyway. As I don't have too many products yet... is there a way to make the sitemap show the products under each category shown on the sitemap... sort of how the links in the information box show under "information" in the sitemap? I feel like I am getting all sorted out now and am on the right track with everything so thank you for all your help and support. Kathy Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.