This is a discussion on Easy: No SEO URL on SSL links within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Here is a simple way to disable the SEO URL link output for SSL pages (account, checkout, history, shipping etc) ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| Here is a simple way to disable the SEO URL link output for SSL pages (account, checkout, history, shipping etc) If you use STS then this will also fix the STS template error on the account_history_info.php page when SEO urls are enabled. Only one change. Before: catalog/account_history_info.php/order_id/27 After catalog/account_history_info.php?order_id=27 ================================================= OPEN catalogincludesfunctionshtml_output.php FIND THIS: $link = str_replace('?', '/', $link); $link = str_replace('&', '/', $link); $link = str_replace('=', '/', $link); $separator = '?'; AND REPLACE WITH THIS: if ($connection == 'NONSSL') { // DISABLE SEO URL FOR SSL LINKS $link = str_replace('?', '/', $link); $link = str_replace('&', '/', $link); $link = str_replace('=', '/', $link); $separator = '?'; } ================================================= Thats it! More...
__________________ Michael Sasek osCMax Developer
|
|
#2
| ||||
| ||||
| this is what mine looks like // LINE ADDED: MOD - Ultimate SEO URLs - by Chemo while (strstr($seo_link, '&&')) $seo_link = str_replace('&&', '&', $seo_link); $link = str_replace('?', '/', $link); $link = str_replace('&', '/', $link); $link = str_replace('=', '/', $link); // BOF: MOD - Ultimate SEO URLs - by Chemo $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); // EOF: MOD - Ultimate SEO URLs - by Chemo $separator = '?'; |
|
#3
| ||||
| ||||
| sorry i did not notice this is for osCommerce 2.2 howto no SEO URL on SSL links with oecmax |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Outside Links Box | michael_s | New osCommerce Contributions | 0 | 10-07-2007 11:04 AM |
| Outside Links Box | michael_s | New osCommerce Contributions | 0 | 05-25-2007 03:23 AM |
| boxes and links help me | andes1 | osCommerce 2.2 Modification Help | 0 | 07-08-2004 10:13 AM |
| BTS how-to links | afterdigital | osCommerce 2.2 Modification Help | 3 | 04-10-2004 02:35 AM |
| SSL links | Anonymous | osCommerce 2.2 Installation Help | 0 | 11-26-2002 09:13 PM |