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

Mod Rewrite SEO URLs

This is a discussion on Mod Rewrite SEO URLs within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; My SEO URLs were working fine up until i started messing with configure.php and application_top.php today... the thing is I ...

      
  1. #1
    Active Member
    Join Date
    Aug 2007
    Posts
    145
    Rep Power
    5


    Default Mod Rewrite SEO URLs

    My SEO URLs were working fine up until i started messing with configure.php and application_top.php today... the thing is I have restored both back to original and it is still nto working... I get a 404.

    My configure.php:

    define('HTTP_SERVER', 'http://www.mydomain.com.au'); // eg, cPanel® - should not be empty for productive servers
    define('HTTPS_SERVER', 'https://www.mydomain.com.au'); // eg, https://localhost - should not be empty for productive servers
    define('ENABLE_SSL', true); // secure webserver for checkout procedure?
    define('HTTP_COOKIE_DOMAIN', 'www.mydomain.com.au');
    define('HTTPS_COOKIE_DOMAIN', 'www.mydomain.com.au');
    define('HTTP_COOKIE_PATH', '/');
    define('HTTPS_COOKIE_PATH', '/');
    define('DIR_WS_HTTP_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

    define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
    define('DIR_FS_CATALOG', '/home/myaccountname/public_html/');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');



    my .htaccess:


    RewriteBase /
    RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
    RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
    RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}



    please help!

  2. #2
    Active Member
    Join Date
    Aug 2007
    Posts
    145
    Rep Power
    5


    Default Re: Mod Rewrite SEO URLs

    I have replaced everythig other than configure.php in my includes folder(only files not folders)

  3. #3
    Active Member
    Join Date
    Aug 2007
    Posts
    145
    Rep Power
    5


    Default Re: Mod Rewrite SEO URLs

    I figured out what the problem was... for some reason

    RewriteEngine on

    had been commented out in my .htaccess... WTF...

Similar Threads

  1. Independent SEO URL Validation(for ULTIMATE SEO URLs)
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 03-31-2008, 12:02 AM
  2. Independent SEO URL Validation(for ULTIMATE SEO URLs)
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 02-14-2008, 01:54 AM
  3. Independent SEO URL Validation(for ULTIMATE SEO URLs)
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 02-13-2008, 01:32 AM
  4. SEO friendly url - rewrite not working
    By muyaszed in forum osCMax v2 Features Discussion
    Replies: 6
    Last Post: 09-09-2007, 03:13 PM
  5. Sort by price(if you use mod rewrite)
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-29-2007, 01:30 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
  •