osCmax v2.5 User Manual
Results 1 to 3 of 3

Ultimate SEO URLs

This is a discussion on Ultimate SEO URLs within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; This is not for everybody. But if you're getting URL's for your categories like this: http;//www.yoursite.com/-c-2.html instead of: http://www.yoursite.com/categoryname_keyword-c-2.html Then ...

      
  1. #1
    osCMax Developer

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


    Post Ultimate SEO URLs

    This is not for everybody. But if you're getting URL's for your categories like this:
    http;//www.yoursite.com/-c-2.html
    instead of:
    http://www.yoursite.com/categoryname_keyword-c-2.html
    Then your version of mysql needs a new seo.class.php.
    Just upload it to your (catalog)/includes/classes/ folder and your categories names will again appear!
    This file contains only the seo.class.php file, and nothing else, so this is not the complete contribution -- this fix only for those who had the problem mentioned above.
    Find
    $sql = "SELECT cd.categories_seo_url, c.categories_id, c.parent_id, cd.categories_name as cName,
    cd2.categories_name as pName
    FROM ".TABLE_CATEGORIES." c,
    ".TABLE_CATEGORIES_DESCRIPTION." cd
    LEFT JOIN ".TABLE_CATEGORIES_DESCRIPTION." cd2
    ON c.parent_id=cd2.categories_id AND
    cd2.language_id='".(int)$this->languages_id."'
    WHERE c.categories_id='".(int)$single_cID."'
    AND cd.categories_id='".(int)$single_cID."'
    AND cd.language_id='".(int)$this->languages_id."'
    LIMIT 1";

    Change it to:

    $sql = "SELECT cd.categories_seo_url, c.categories_id, c.parent_id, cd.categories_name AS cName, cd2.categories_name AS pName
    FROM ".TABLE_CATEGORIES." c
    INNER JOIN ".TABLE_CATEGORIES_DESCRIPTION." cd ON cd.categories_id = '".(int)$single_cID."'
    AND cd.language_id='".(int)$this->languages_id."'
    LEFT JOIN ".TABLE_CATEGORIES_DESCRIPTION." cd2 ON c.parent_id = cd2.categories_id
    AND cd2.language_id = '".(int)$this->languages_id."'
    WHERE c.categories_id = '".(int)$single_cID."'
    LIMIT 1";


    Admin
    http://www.oscommerce-packages.com

    More...
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    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
    Join Date
    Feb 2008
    Posts
    17
    Rep Power
    0


    Default Re: Ultimate SEO URLs

    Hi Michael,

    I'm getting this problem, but I don't have an seo.class.php file full stop. This is a clean and fresh install, installed 2 days ago. Is this just a one off missing file or should I be checking others?

    Thanks
    LML

  3. #3
    osCMax Developer

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


    Default Re: Ultimate SEO URLs

    This is a newer version of the mod and is not specifically for osCMax... Remember, this specific forum is for mods discussion for osCommerce standard, not osCMax.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    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

Similar Threads

  1. Ultimate SEO URLs
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 10-18-2007, 12:22 PM
  2. Ultimate SEO URLs
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 07-31-2007, 06:31 AM
  3. Ultimate SEO URLs
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 07-13-2007, 03:57 AM
  4. Ultimate SEO URLs
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 07-05-2007, 08:01 PM
  5. Ultimate SEO URLs
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-03-2007, 06:20 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
  •