Community Add-Ons

Maintainers: nextprevious
Add file to this package
Top » Other

Easy: No SEO URL on SSL links
for osCommerce Online Merchant v2.2

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!

Legend:  Download   Report
Expand All / Collapse All
Easy: No SEO URL on SSL links nextprevious 26 Oct 2007  

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!