• Tech

    オタクに1台Apple “iTV”


  • Uncategorized

    SEO URLs in single language only [by celiawessen]

    osCommerce:: SEO URLs in single language only
    When using the Ultimate SEO URLs contribution by Chemo, the URLs generated are based on the language being used. Although this is nice, it does create problems with 2-byte languages and directory names in URLs do not have such a strong effect on search engines anyway.

    To limit the generate URL to English (or any single language) you'll need to tweek the installation.

    When modifying catalog/includes/application_top.php with:

    // Ultimate SEO URLs for MS1J 

    include_once(DIR_WS_CLASSES 'seo.class.php'); 

    $seo_urls = new SEO_URL($languages_id);

    Replace is with:

    // Ultimate SEO URLs for MS1J 

    include_once(DIR_WS_CLASSES 'seo.class.php'); 

    $seo_urls = new SEO_URL(1);

    You may also create if/then statements or access the database around this area to be able to control the URL generation language from the admin screen.