osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Easy: No SEO URL on SSL links

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) ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 10-26-2007, 12:56 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Easy: No SEO URL on SSL links

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


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 01-22-2008, 04:32 PM
projectpb's Avatar
New Member
 
Join Date: Feb 2007
Posts: 17
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
projectpb is on a distinguished road
Default Re: Easy: No SEO URL on SSL links

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 = '?';
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 01-22-2008, 05:03 PM
projectpb's Avatar
New Member
 
Join Date: Feb 2007
Posts: 17
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
projectpb is on a distinguished road
Default Re: Easy: No SEO URL on SSL links

sorry i did not notice this is for osCommerce 2.2
howto no SEO URL on SSL links with oecmax
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 05:24 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax