PDA

View Full Version : Easy: No SEO URL on SSL links



michael_s
10-26-2007, 12:56 PM
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... (http://addons.oscommerce.com/info/5495)

projectpb
01-22-2008, 04:32 PM
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 = '?';

projectpb
01-22-2008, 05:03 PM
sorry i did not notice this is for osCommerce 2.2 (http://www.oscmax.com/forums/#oscommerce-2-2-forums)
howto no SEO URL on SSL links with oecmax