Results 1 to 3 of 3

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

      
  1. #1
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    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 installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  2. #2
    New Member projectpb's Avatar
    Join Date
    Feb 2007
    Posts
    22
    Rep Power
    0


    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 = '?';

  3. #3
    New Member projectpb's Avatar
    Join Date
    Feb 2007
    Posts
    22
    Rep Power
    0


    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

Similar Threads

  1. Outside Links Box
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 10-07-2007, 12:04 PM
  2. Outside Links Box
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-25-2007, 04:23 AM
  3. boxes and links help me
    By andes1 in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 07-08-2004, 11:13 AM
  4. BTS how-to links
    By afterdigital in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 04-10-2004, 03:35 AM
  5. SSL links
    By Anonymous in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 11-26-2002, 09:13 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •