NHRAFan Posted May 9, 2005 Share Posted May 9, 2005 I don't get an error message in the rewrite-mode, but the main page always stays the same when I click on different categories. When I click on a product, it says "product not found" or something like that.Does it work in cName mode? How many products do you have? Quote Link to comment Share on other sites More sharing options...
Sethman Posted May 10, 2005 Share Posted May 10, 2005 Hi, I just recently installed this mod and have everything configured... I think, but nothing seems to be working. I have it set to rewrite but I am still just getting numbers, for instance: Â product_info.php?products_id=288 Â I need a little help on this... I think the cache thing is what's messing me up, I don't know what I'm doing with cache Quote Link to comment Share on other sites More sharing options...
Sethman Posted May 10, 2005 Share Posted May 10, 2005 Well I don't know what I did, but I got the url to show up with the correct information, but the pages were not showing up. Â For instance, I clicked on a product and in the url is says .../product.htm but it goes to the 404 error page. Â How do you get your site to recognize the pages correctly? Â Any help would be appreciated. Thanks Quote Link to comment Share on other sites More sharing options...
NHRAFan Posted May 10, 2005 Share Posted May 10, 2005 If you have it set for rewrite and you are getting 404s, then chances are you have your htaccess fike wrong. Set it to cName, does it work then? Quote Link to comment Share on other sites More sharing options...
JoeMcManus Posted May 10, 2005 Share Posted May 10, 2005 Bobby and SEO devotees, Â I've used this Contrib with great success however it magically stopped working. My site is www.buy-a-mattress.co.uk and my htaccess still seems fine. Obviously it's turned on. I haven't touched the code so really wonder what's up. If someone could be so kind to have a look that'd be great. Let me know which bits of code you need to get a better understanding of what's going in. Â Joe a.k.a. T0PS3O Quote Johan a.k.a. T0PS3O elsewhere. Â Contributed Barclay's ePDQ Payment Module though not originally mine. Made it work though... Link to comment Share on other sites More sharing options...
BenjaminB Posted May 10, 2005 Share Posted May 10, 2005 What steps should i do if i want the manufacturer name in the link for a product? Quote Link to comment Share on other sites More sharing options...
BenjaminB Posted May 10, 2005 Share Posted May 10, 2005 I have been searching through many pages of this thread for about 2 hours now, but i didnt found anything (neither did i found a edit button, to edit my previous post). i still have problems with the buy now (buy_now) button. it wont work on search results and if i use the manufacturer drop down. please help. thanks in advance. regards benjamin Quote Link to comment Share on other sites More sharing options...
rhubarb Posted May 10, 2005 Share Posted May 10, 2005 I have two sites with Ultimate SEO urls installed, one was a fresh install with oscommerce demo products, the other has had SEO integrated as per install instructions. The problem occurs when adding a product to the cart from the product_info.php page, on the integrated site when add to cart is clicked the browser doesn't find the link, but the demo version works fine. Â The html for the form in 'view source' compares as follows: Â demo site: <form name="cart_quantity" action="http://e-shop.org.uk/seo/microsoft-intellimouse-p-3.html?action=add_product" method="post"> Â integrated site: <form name="cart_quantity" action="http://10.0.0.3/sitename/oil-xfe-diesel-5-p-747.html/action/add_product" method="post"> Â Some where the '?' and '=' are being replaced by '/'. Any clues anyone please? Quote Link to comment Share on other sites More sharing options...
Sethman Posted May 10, 2005 Share Posted May 10, 2005 If you have it set for rewrite and you are getting 404s, then chances are you have your htaccess fike wrong. Set it to cName, does it work then? <{POST_SNAPBACK}> Â Â I just changed it to cName and it seems to work fine. What have I done wrong with the .htaccess file? I added the code to the main htaccess file in my store folder. Quote Link to comment Share on other sites More sharing options...
NHRAFan Posted May 10, 2005 Share Posted May 10, 2005 I just changed it to cName and it seems to work fine. What have I done wrong with the .htaccess file? I added the code to the main htaccess file in my store folder. <{POST_SNAPBACK}> Post your htaccess file, that's the easiest way to figure it out. Also, make sure you are getting the htaccess file from the directory you have osC installed in. If your htaccess file is in the root directory instead of the catalog directory, make sure to tell us because it makes a difference. Quote Link to comment Share on other sites More sharing options...
NHRAFan Posted May 10, 2005 Share Posted May 10, 2005 I have been searching through many pages of this thread for about 2 hours now, but i didnt found anything (neither did i found a edit button, to edit my previous post). i still have problems with the buy now (buy_now) button. it wont work on search results and if i use the manufacturer drop down. please help. thanks in advance.regards benjamin <{POST_SNAPBACK}> What version did you install? The latest version has the buy now fixes integrated. Quote Link to comment Share on other sites More sharing options...
BenjaminB Posted May 10, 2005 Share Posted May 10, 2005 I've installed this: 1 Feb 2005 - Ultimate SEO URLs v2.0 Author: Chemo Quote Link to comment Share on other sites More sharing options...
NHRAFan Posted May 10, 2005 Share Posted May 10, 2005 (edited) Do you have a CRE Loaded store? What version store do you use? What other contributions do you have installed? Edited May 10, 2005 by NHRAFan Quote Link to comment Share on other sites More sharing options...
BenjaminB Posted May 10, 2005 Share Posted May 10, 2005 HTTP Server: Apache/2.0.40 (Red Hat Linux) PHP Version: 4.2.2 (Zend: 1.2.0) osCommerce Version: ms2-2 Â installed contribs: Â UltraPics - MS2 Image Addon Pack! Link: http://www.oscommerce.com/community/contributions,1642/ Master Products - MS2 Link: http://www.oscommerce.com/community/contributions,1681/ Credit Class & Gift Voucher *working* Link: http://www.oscommerce.com/community/contributions,282/ Ultimate SEO URLs Link: http://www.oscommerce.com/community/contributions,2823/ Simple Template System Link: http://www.oscommerce.com/community/contributions,1524/ Header Tags Controller Link: http://www.oscommerce.com/community/contributions,207/ Quote Link to comment Share on other sites More sharing options...
rhubarb Posted May 10, 2005 Share Posted May 10, 2005 I think I've solved my problem where the separators were being replaced by forward slashes. The following setting was true, once set to false it worked. Â Admin Control Panel -> Configuration -> My Store -> Use Search-Engine Safe URLs (still in development) -> FALSE Quote Link to comment Share on other sites More sharing options...
orangejuice Posted May 10, 2005 Share Posted May 10, 2005 I have a minor problem with this wonderful contrib. I?m using Categories Tabs withs subs.  I have modified muy URLs to show product_id AND cpath.  If i use Ultimate SEO URLs, cpath is not in url, and in my product page, my tabs menu is withouth a category.  I need to modified this contrib to add cpath in the URL of the product info page, i know how to modify .htaccess, but i dont know how to modify this contrib.  An example will be:  NOW: http://site.com/my-product-p-37.html  WITH THE REQUIRED MODIFICATION: http://site.com/my-product-c-1_10-p-37.html Any Help would be apreciated.  Thanks in advance. <{POST_SNAPBACK}>  Chemo suggested to "extract" cpath from application top, i have tryed a lot, with the funcion  $cPath = tep_get_product_path($HTTP_GET_VARS['products_id']);   but i?m getting mad, the cpath is not obtained, this function is present in general.php, all seems to be correct, but nothing hapens...   I send an SOS, i need to add cpath to the seo urls for products page, like this:  http://site.com/my-product-c-1_10-p-37.html  Any help? Quote Link to comment Share on other sites More sharing options...
NHRAFan Posted May 10, 2005 Share Posted May 10, 2005 HTTP Server: Apache/2.0.40 (Red Hat Linux)PHP Version: 4.2.2 (Zend: 1.2.0) osCommerce Version: ms2-2  installed contribs:  UltraPics - MS2 Image Addon Pack!  Link: http://www.oscommerce.com/community/contributions,1642/ Master Products - MS2  Link: http://www.oscommerce.com/community/contributions,1681/ Credit Class & Gift Voucher *working*  Link: http://www.oscommerce.com/community/contributions,282/ Ultimate SEO URLs  Link: http://www.oscommerce.com/community/contributions,2823/ Simple Template System  Link: http://www.oscommerce.com/community/contributions,1524/ Header Tags Controller  Link: http://www.oscommerce.com/community/contributions,207/ <{POST_SNAPBACK}> None of those contributions should make a difference if you installed the SEO URLs correctly. Can we look at your site? It would help to see how the links are being formed and what errors are popping up. Quote Link to comment Share on other sites More sharing options...
Sethman Posted May 10, 2005 Share Posted May 10, 2005 (edited) Post your htaccess file, that's the easiest way to figure it out. Also, make sure you are getting the htaccess file from the directory you have osC installed in. If your htaccess file is in the root directory instead of the catalog directory, make sure to tell us because it makes a difference. <{POST_SNAPBACK}> Â I edited the htaccess file in the /catalog/ directory because that is where my store is located. Here it is: Â Â # $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $ # # This is used with Apache WebServers # # For this to work, you must include the parameter 'Options' to # the AllowOverride configuration # # Example: # # <Directory "/usr/local/apache/htdocs"> # ? AllowOverride Options # </Directory> # # 'All' with also work. (This configuration is in the # apache/conf/httpd.conf file) # The following makes adjustments to the SSL protocol for Internet # Explorer browsers <IfModule mod_setenvif.c> ?<IfDefine SSL> ? ?SetEnvIf User-Agent ".*MSIE.*" \ ? ? ? ? ? ? nokeepalive ssl-unclean-shutdown \ ? ? ? ? ? ? downgrade-1.0 force-response-1.0 ?</IfDefine> </IfModule> # Fix certain PHP values # (commented out by default to prevent errors occuring on certain # servers) #<IfModule mod_php4.c> # ?php_value session.use_trans_sid 0 # ?php_value register_globals 1 #</IfModule> RewriteEngine On # Change "folder" to your catalog directory name RewriteBase /catalog/ RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING} Edited May 10, 2005 by Sethman Quote Link to comment Share on other sites More sharing options...
Guest Posted May 10, 2005 Share Posted May 10, 2005 Chemo suggested to "extract" cpath from application top, i have tryed a lot, with the funcion $cPath = tep_get_product_path($HTTP_GET_VARS['products_id']); but i?m getting mad, the cpath is not obtained, this function is present in general.php, all seems to be correct, but nothing hapens...   I send an SOS, i need to add cpath to the seo urls for products page, like this:  http://site.com/my-product-c-1_10-p-37.html  Any help? <{POST_SNAPBACK}> The cPath is set by this code in application_top.php: // calculate category path  if (isset($HTTP_GET_VARS['cPath'])) {   $cPath = $HTTP_GET_VARS['cPath'];  } elseif (isset($HTTP_GET_VARS['products_id']) && !isset($HTTP_GET_VARS['manufacturers_id'])) {   $cPath = tep_get_product_path($HTTP_GET_VARS['products_id']);  } else {   $cPath = '';  } As you can see, under the condition of $_GET[products_id] and !$_GET[manufacturers_id] it will set the cPath variable using the same function as what you are trying to use.  I suspect it may be an issue with your server detecting the parameters as passed from the rewrite rule. It can be debugged easily...get with me on instant messenger and I'll walk you through it.  Bobby Quote Link to comment Share on other sites More sharing options...
Shams Posted May 11, 2005 Share Posted May 11, 2005 Chemo, Â This contrib seems to be what every store owner is looking for. I can't wait to install it and make use of it. Do you think it might be contradicted to the SEO SiteMap contrib I already use? I'm new to OSC with 0 knowledge of php and I'm afraid of messing thing up. Please advise me. Â Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 11, 2005 Share Posted May 11, 2005 Use this sitemap => Sitemap MS2.2 and then overwrite the base class with the one provided by Chris dated 11 Mar 2005. Â Bobby Quote Link to comment Share on other sites More sharing options...
Sethman Posted May 11, 2005 Share Posted May 11, 2005 any help for me chemo? Thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted May 11, 2005 Share Posted May 11, 2005 Chemo, Â I have spent the greater part of the past few days reading your works on SEO and some of your documents through out this site. Including your blog. After reading everything, I decided to use this contribution of yours. Â I thought I would not have any problems as I read, then re-read / backed up, and re backed up everything before altering any code. Â I am so impressed with how you are able to answer so many questions, support all of us in a professional manor and yet have the time to work on a new version. Â Today I installed the contribution and I did not think I had any problems. But as soon as I added the code you have listed in your install instructions to my domain.com/catalog/.htaccess file, my site will not show up. It will not even show up with the admin url. Â I have cutted and pased the code in the install, and the same code I saw you posted though out this thread to a notepad just incase I was adding weird spaces or whatnot and using telnet, I did a pico to my .htacces and pasted the code. Â So, I read all the posts and have been looking long and hard at the problem. If I remove the code you have us add to the .htaccess file, the site works with no issues. When I add the code, the site will not operate at all.. Â I am getting a 500 Server error. Â Options +FollowSymLinks RewriteEngine On # Change "folder" to your catalog directory name RewriteBase /catalog/ RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING} Â Just some notes, my Admin folder has a .htaccess password protect in it, and there are a few other directories that have .htaccess password protection. Â Today I sent a letter to my host and asked them to check this code to see if there is a problem, but the fact is, they are very advanced and even offer oscommerce. Any how, what could it be? Â I appreciate your or anyones assistance.... Quote Link to comment Share on other sites More sharing options...
NHRAFan Posted May 11, 2005 Share Posted May 11, 2005 I edited the htaccess file in the /catalog/ directory because that is where my store is located. Here it is: # $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $ # # This is used with Apache WebServers # # For this to work, you must include the parameter 'Options' to # the AllowOverride configuration # # Example: # # <Directory "/usr/local/apache/htdocs"> #  AllowOverride Options # </Directory> # # 'All' with also work. (This configuration is in the # apache/conf/httpd.conf file) # The following makes adjustments to the SSL protocol for Internet # Explorer browsers <IfModule mod_setenvif.c>  <IfDefine SSL>   SetEnvIf User-Agent ".*MSIE.*" \       nokeepalive ssl-unclean-shutdown \       downgrade-1.0 force-response-1.0  </IfDefine> </IfModule> # Fix certain PHP values # (commented out by default to prevent errors occuring on certain # servers) #<IfModule mod_php4.c> #  php_value session.use_trans_sid 0 #  php_value register_globals 1 #</IfModule> RewriteEngine On # Change "folder" to your catalog directory name RewriteBase /catalog/ RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING} <{POST_SNAPBACK}> Only thing I can see wrong here is you are missing 1 line - Options +FollowSymLinks RewriteEngine On # Change "folder" to your catalog directory name RewriteBase /catalog/ RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING} Add Options +FollowSymLinks Quote Link to comment Share on other sites More sharing options...
BenjaminB Posted May 11, 2005 Share Posted May 11, 2005 None of those contributions should make a difference if you installed the SEO URLs correctly. Can we look at your site? It would help to see how the links are being formed and what errors are popping up.  No sorry. But i have some snippets and some information. If i use the manufacturers dropdown, the link is like this /index.php?manufacturers_id=10 not like /xxx-m-10.html. Ive found the repsective code lines (taken from product_listing.php): case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center';  //Master Products       if ($listing['products_master_status'] != '1' && $listing['products_master'] == '0') {   $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'pName')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> ';  } elseif ($listing['products_master'] != '0') {   $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_master']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> ';    } else {   $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> ';  }  //Master Products EOF     break;  I dont know where the problem is, because in this snippet the function tep_href_link is called, and this is what ive modified for SEO. The other links in the product_listing, if called with isset(manufacturers_id) are fine (the text and the image link). They come up like this /xxx-p-10.html. Only the buy_now column wont work. It does work if you just browse through the categories.  Imho the Master Products contrib is part of the problem, because it modifies the buy_now column. If a product is just a master product without a price, the buy_now column just takes you to the product details. But the products id is always empty on the buy_now image. It comes up like /product_info.php?products_id=. Without the products id or the "action=buy_now&sort=2a" parameter. 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.
Note: Your post will require moderator approval before it will be visible.