Jack_mcs Posted July 7, 2010 Share Posted July 7, 2010 It says this: Call your store in your favorite browser! The contribution should be functional out of the box and all database settings will be installed automatically on first page request. The contribution has an intelligent database installer that detects whether the proper settings are present and if not will install them. You may need to clear your cache files to ensure that all URLs generated are fresh. Click a few links and verify everything is functional. Test the add to cart and buy now buttons if you use them. Once you verify everything is working it's time to configure the contribution. Then you are using some other version, which I don't offer support for. I suggest you install my latest version and give it a try. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
WebDev22 Posted July 7, 2010 Share Posted July 7, 2010 Then you are using some other version, which I don't offer support for. I suggest you install my latest version and give it a try. I thought I had the correct file. The folder that I extracted says this: Ultimate_SEO_URLSv22d_10. Quote Link to comment Share on other sites More sharing options...
WebDev22 Posted July 7, 2010 Share Posted July 7, 2010 I thought I had the correct file. The folder that I extracted says this: Ultimate_SEO_URLSv22d_10. Here's the link to the contribution page where I downloaded the add-on: http://addons.oscommerce.com/info/2823. I either need to wait to get confirmation that I installed the wrong contribution, or I need to start undoing all my work. Quote Link to comment Share on other sites More sharing options...
♥altoid Posted July 7, 2010 Share Posted July 7, 2010 Yes, that's correct. The code issues a 404 for those pages so the search engines will remove them whenever they get around to scanning them again. Thanks for the clarification of the 404. I really appreciate what you do for us here. Quote I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can. I remember what it was like when I first started with osC. It can be overwhelming. However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc. There are several good pros here on osCommerce. Look around, you'll figure out who they are. Link to comment Share on other sites More sharing options...
WebDev22 Posted July 7, 2010 Share Posted July 7, 2010 I thought I had the correct file. The folder that I extracted says this: Ultimate_SEO_URLSv22d_10. I think I have the correct contribution, but that there's an issue with the htaccess file. For a test, I deleted everything in the htaccess file and the home page now comes up. Any ideas? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted July 7, 2010 Share Posted July 7, 2010 Here's the link to the contribution page where I downloaded the add-on: http://addons.oscommerce.com/info/2823. I either need to wait to get confirmation that I installed the wrong contribution, or I need to start undoing all my work. I don't know what to tell you. The latest version is 2.2d but the testing installation section clearly states, "be sure to include the url to your shop and a copy of your .htaccess file" which you can't see in the instructions. Maybe you downloaded the wrong version? Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
WebDev22 Posted July 7, 2010 Share Posted July 7, 2010 Thanks for the clarification of the 404. I really appreciate what you do for us here. I think we're talking about the same contribution. In the instructions (Downloads\Ultimate_SEO_URLSv22d_10\docs\index.html), under "STEP #7 - Test the installation", towards the bottom, it discusses 404 Error and RewriteBase. Incidentally, I now get a 404 error with a blank htaccess file, so I've got something to try now. Wish me luck. Quote Link to comment Share on other sites More sharing options...
WebDev22 Posted July 7, 2010 Share Posted July 7, 2010 I think we're talking about the same contribution. In the instructions (Downloads\Ultimate_SEO_URLSv22d_10\docs\index.html), under "STEP #7 - Test the installation", towards the bottom, it discusses 404 Error and RewriteBase. Incidentally, I now get a 404 error with a blank htaccess file, so I've got something to try now. Wish me luck. I'm pretty sure it's related to the htaccess file. I just added the following code back to the htaccess file and am getting the 500 error again. When I remove the code, the home page comes up, but none of the catalog or product pages. # Begin Ultimate SEO V2.2d Options +FollowSymLinks RewriteEngine On # RewriteBase instructions # Change RewriteBase dependent on how your shop is accessed as below. # http://www.mysite.com = RewriteBase / # http://www.mysite.com/catalog/ = RewriteBase /catalog/ # http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/ # Change the following line using the instructions above http://www.nationalsportsequipment.com = RewriteBase / 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} RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING} RewriteRule ^(.*)-by-(.*).html$ all-products.php?fl=$2&%{QUERY_STRING} RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-au-(.*).html$ articles.php?authors_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-f-(.*).html$ faqdesk_info.php?faqdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-fc-(.*).html$ faqdesk_index.php?faqPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-fri-(.*).html$ faqdesk_reviews_info.php?faqdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-fra-(.*).html$ faqdesk_reviews_article.php?faqdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-n-(.*).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-nc-(.*).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-nri-(.*).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-nra-(.*).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING} # End Ultimate SEO V2.2d Quote Link to comment Share on other sites More sharing options...
WebDev22 Posted July 7, 2010 Share Posted July 7, 2010 (edited) I totally misunderstood the htaccess instructions and fixed the problem. One thing I noticed is that the "www" goes away when clicking into a category or product. Is this by design? Edited July 7, 2010 by brettg22 Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted July 7, 2010 Share Posted July 7, 2010 I totally misunderstood the htaccess instructions and fixed the problem. One thing I noticed is that the "www" goes away when clicking into a category or product. Is this by design? No, that's not right. If the www doesn't go away when this contribution is turned off, then there is probably a mistake in the .htaccess file. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
WebDev22 Posted July 7, 2010 Share Posted July 7, 2010 No, that's not right. If the www doesn't go away when this contribution is turned off, then there is probably a mistake in the .htaccess file. Here's what I have for the htaccess file: # Begin Ultimate SEO V2.2d Options +FollowSymLinks RewriteEngine On # RewriteBase instructions # Change RewriteBase dependent on how your shop is accessed as below. # http://www.mysite.com = RewriteBase / # http://www.mysite.com/catalog/ = RewriteBase /catalog/ # http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/ # Change the following line using the instructions above RewriteBase / 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} RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING} RewriteRule ^(.*)-by-(.*).html$ all-products.php?fl=$2&%{QUERY_STRING} RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-au-(.*).html$ articles.php?authors_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-f-(.*).html$ faqdesk_info.php?faqdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-fc-(.*).html$ faqdesk_index.php?faqPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-fri-(.*).html$ faqdesk_reviews_info.php?faqdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-fra-(.*).html$ faqdesk_reviews_article.php?faqdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-n-(.*).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-nc-(.*).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-nri-(.*).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-nra-(.*).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING} # End Ultimate SEO V2.2d Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted July 7, 2010 Share Posted July 7, 2010 Here's what I have for the htaccess file: That looks correct. And since you posted it, I assume the problem doesn't occur when the contribution is turned off. So I don't have an answer for you. The only code in the contribution that has to do with www is based on the configure file so it seems the problem has to be there. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
WebDev22 Posted July 7, 2010 Share Posted July 7, 2010 That looks correct. And since you posted it, I assume the problem doesn't occur when the contribution is turned off. So I don't have an answer for you. The only code in the contribution that has to do with www is based on the configure file so it seems the problem has to be there. For SEO purposes, do you think it's worth the effort to address this? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted July 7, 2010 Share Posted July 7, 2010 For SEO purposes, do you think it's worth the effort to address this? Yes, it is. The same page with and without www is considered two pages by the search engines and can cause duplicate content issues. Google has a setting that will allow you to choose one or the other (Bing and Yahoo may too - I haven't looked) but it is better to fix it at the source. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
WebDev22 Posted July 7, 2010 Share Posted July 7, 2010 Yes, it is. The same page with and without www is considered two pages by the search engines and can cause duplicate content issues. Google has a setting that will allow you to choose one or the other (Bing and Yahoo may too - I haven't looked) but it is better to fix it at the source. Is there a preference (www vs. no www)? Or, does it not matter as long as you're consistent? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted July 7, 2010 Share Posted July 7, 2010 Is there a preference (www vs. no www)? Or, does it not matter as long as you're consistent? No. Yes. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
WebDev22 Posted July 7, 2010 Share Posted July 7, 2010 No. Yes. Thanks. I really appreciate your help. Quote Link to comment Share on other sites More sharing options...
justnikki21 Posted July 7, 2010 Share Posted July 7, 2010 I have search and searched and found about 20 people asking the same question but no answer... Can someone please help me? How do I remove the osCsid from my URLs? Site: ProParts USA Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted July 8, 2010 Share Posted July 8, 2010 I have search and searched and found about 20 people asking the same question but no answer... Can someone please help me? How do I remove the osCsid from my URLs? You need to fix your configure file. You can get the link to a thread on how to do that from the many, many posts on the subject in this thread or use the link in the documentation from my latest version. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
blr044 Posted July 8, 2010 Share Posted July 8, 2010 (edited) Hope I am posting this in the correct thread. Whenever I open my site the first time after the I reopen the browser FF or IE8, all is fine. After I click any link, does not mater regardless categories or internal links, the URL displays the osCid. But then click the home page, all is fine again and now what ever I go from there, no osCid. So it's the first link or categories only. So if I see it, does search engines and customers see it also? If one keeps clicking other links without clicking the home link, the osCid will not go away. This started happening after I switched host. https://www.greatdiscounts4u.com Any thoughts on this? Thank you. Bennett Edited July 8, 2010 by blr044 Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted July 8, 2010 Share Posted July 8, 2010 Whenever I open my site the first time after the I reopen the browser FF or IE8, all is fine. After I click any link, does not mater regardless categories or internal links, the URL displays the osCid. But then click the home page, all is fine again and now what ever I go from there, no osCid. So it's the first link or categories only. So if I see it, does search engines and customers see it also? If one keeps clicking other links without clicking the home link, the osCid will not go away. This started happening after I switched host. It's almost cetainly your configure file. There are many, many replies on this, quite a few in the last few pages as well as a link in the documentation. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Guest Posted July 9, 2010 Share Posted July 9, 2010 please can any one help i am trying to do the addon of Ultimate_SEO_URLSv22d_10 - and in step STEP #3 - Edit includes/functions/html_output.php I dont find the code that i suppose to find in the instruction - so find some similiraties but not exact match , so i replaced any way the code , but I am having a problem in the website it doesnt work at all. this is what I have //// // The HTML href link wrapper function function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) { global $request_type, $session_started, $SID; if (!tep_not_null($page)) { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>'); } if ($connection == 'NONSSL') { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } elseif ($connection == 'SSL') { if (ENABLE_SSL == true) { $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; } else { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } } else { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>'); } if (tep_not_null($parameters)) { $link .= $page . '?' . tep_output_string($parameters); $separator = '&'; } else { $link .= $page; $separator = '?'; } while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1); // Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) { if (tep_not_null($SID)) { $_sid = $SID; } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) { if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) { $_sid = tep_session_name() . '=' . tep_session_id(); } } } if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) { while (strstr($link, '&&')) $link = str_replace('&&', '&', $link); $link = str_replace('?', '/', $link); $link = str_replace('&', '/', $link); $link = str_replace('=', '/', $link); $separator = '?'; } if (isset($_sid)) { $link .= $separator . tep_output_string($_sid); } return $link; } //// and this what i should have according to the docuentation //// // The HTML href link wrapper function function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) { global $request_type, $session_started, $SID; $seo = ( defined('SEO_URLS') ? SEO_URLS : false ); $seo_rewrite_type = ( defined('SEO_URLS_TYPE') ? SEO_URLS_TYPE : false ); $seo_pages = array('index.php', 'product_info.php'); if ( !in_array($page, $seo_pages) ) $seo = false; if (!tep_not_null($page)) { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>'); } if ($page == '/') $page = ''; if ($connection == 'NONSSL') { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; $seo_link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; $seo_rewrite_link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } elseif ($connection == 'SSL') { if (ENABLE_SSL == true) { $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; $seo_link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; $seo_rewrite_link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; } else { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; $seo_link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; $seo_rewrite_link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } } else { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>'); } if (tep_not_null($parameters)) { $link .= $page . '?' . tep_output_string($parameters); $separator = '&'; # Start exploding the parameters to extract the values # Also, we could use parse_str($parameters) and would probably be more clean if ($seo == 'true'){ $p = explode('&', $parameters); krsort($p); $params = array(); if ( $seo_rewrite_type == 'Rewrite' ){ foreach ($p as $index => $valuepair) { $p2 = explode('=', $valuepair); switch ($p2[0]){ case 'products_id': $rewrite_product = true; if ( defined('PRODUCT_NAME_'.$p2[1]) ){ $rewrite_page_product = short_name(constant('PRODUCT_NAME_'.$p2[1])) . '-p-' . $p2[1] . '.html'; } else { $seo = false; } break; case 'cPath': $rewrite_category = true; if ( defined('CATEGORY_NAME_'.$p2[1]) ){ $rewrite_page_category = short_name(constant('CATEGORY_NAME_'.$p2[1])) . '-c-' . $p2[1] . '.html'; } else { $seo = false; } break; // manufacturer addition by WebPixie case 'manufacturers_id': $rewrite_manufacturer = true; if ( defined('MANUFACTURER_NAME_'.$p2[1]) ){ $rewrite_page_manufacturer = short_name(constant('MANUFACTURER_NAME_'.$p2[1])) . '-m-' . $p2[1] . '.html'; } else { $seo = false; } break; // end manufacturer addition by WebPixie default: $params[$p2[0]] = $p2[1]; break; } # switch } # end foreach $params_stripped = implode_assoc($params); switch (true){ case ( $rewrite_product && $rewrite_category ): case ( $rewrite_product ): $rewrite_page = $rewrite_page_product; $rewrite_category = false; break; case ( $rewrite_category ): $rewrite_page = $rewrite_page_category; break; // manufacturer addition by WebPixie case ( $rewrite_manufacturer ): $rewrite_page = $rewrite_page_manufacturer; break; // end manufacturer addition by WebPixie default: $seo = false; break; } #end switch true $seo_rewrite_link .= $rewrite_page . ( tep_not_null($params_stripped) ? '?'.tep_output_string($params_stripped) : '' ); $separator = ( tep_not_null($params_stripped) ? '&' : '?' ); } else { foreach ($p as $index => $valuepair) { $p2 = explode('=', $valuepair); switch ($p2[0]){ case 'products_id': if ( defined('PRODUCT_NAME_'.$p2[1]) ){ $params['pName'] = constant('PRODUCT_NAME_'.$p2[1]); } else { $seo = false; } break; case 'cPath': if ( defined('CATEGORY_NAME_'.$p2[1]) ){ $params['cName'] = constant('CATEGORY_NAME_'.$p2[1]); } else { $seo = false; } break; // manufacturer addition by WebPixie case 'manufacturers_id': if ( defined('MANUFACTURER_NAME_'.$p2[1]) ){ $params['mName'] = constant('MANUFACTURER_NAME_'.$p2[1]); } else { $seo = false; } break; // end manufacturer addition by WebPixie default: $params[$p2[0]] = $p2[1]; break; } # switch } # end foreach $params_stripped = implode_assoc($params); $seo_link .= $page . '?'.tep_output_string($params_stripped); $separator = '&'; } # end if/else } # end if $seo } else { $link .= $page; $separator = '?'; $seo = false; } # end if(tep_not_null($parameters) while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1); // Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) { if (tep_not_null($SID)) { $_sid = $SID; } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) { if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) { $_sid = tep_session_name() . '=' . tep_session_id(); } } } if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) { while (strstr($link, '&&')) $link = str_replace('&&', '&', $link); while (strstr($seo_link, '&&')) $seo_link = str_replace('&&', '&', $seo_link); $link = str_replace('?', '/', $link); $link = str_replace('&', '/', $link); $link = str_replace('=', '/', $link); $seo_link = str_replace('?', '/', $seo_link); $seo_link = str_replace('&', '/', $seo_link); $seo_link = str_replace('=', '/', $seo_link); $seo_rewrite_link = str_replace('?', '/', $seo_rewrite_link); $seo_rewrite_link = str_replace('&', '/', $seo_rewrite_link); $seo_rewrite_link = str_replace('=', '/', $seo_rewrite_link); $separator = '?'; } if (isset($_sid)) { $link .= $separator . $_sid; $seo_link .= $separator . $_sid; $seo_rewrite_link .= $separator . $_sid; } if ($seo == 'true') { return ($seo_rewrite_type == 'Rewrite' ? $seo_rewrite_link : $seo_link); } else { return $link; } } Quote Link to comment Share on other sites More sharing options...
CGhoST Posted July 9, 2010 Share Posted July 9, 2010 Hi Everyone I have installed this contribution and seems like its all working fine except for one thing. I have the contribution Custom Product Builder (http://addons.oscommerce.com/info/6328) installed and when i have selected the products and click on "Build Product" the session id get changed and hence contents of the cart get empty. When you click the custom product builder is takes to builder_main.php and when clicked on "Build Product" it goes to builder_product_info.php?products_id=30 id=30 is the number of the custom product made so when new custom product builds are done the numbers are: id=31 id=32 and so on how can i go about implementing this into SEO URL please? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted July 9, 2010 Share Posted July 9, 2010 please can any one help i am trying to do the addon of Ultimate_SEO_URLSv22d_10 - and in step STEP #3 - Edit includes/functions/html_output.php I dont find the code that i suppose to find in the instruction - so find some similiraties but not exact match , so i replaced any way the code , but I am having a problem in the website it doesnt work at all. "It doesn't work at all." So your web site will no longeer load - even the home page? You need to replace the complete block of code, even if yours doesn't match what is in the documentation. Your function has been edited though so it could be that some other part of the code has been changed to work with that. Without a more meaningfull descroption of the problem, it is all just guessing but you will probably need to remove the extra code changes elsewhere in the shop that use your edited function. There's no way to be more specific than that since you have non-standard code. It could also be that you haven't finished the installation - more guessing due to the description. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Jack_mcs Posted July 9, 2010 Share Posted July 9, 2010 I have the contribution Custom Product Builder (http://addons.oscommerce.com/info/6328) installed and when i have selected the products and click on "Build Product" the session id get changed and hence contents of the cart get empty. how can i go about implementing this into SEO URL please? The code in Ultimate SEO would have to be altered to handle those url's. It is not a simple change but if you want to try, you can use one of the other contributions, like article manager, where the code has been altered as a guide. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons 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.