Page 1 of 2 12 LastLast
Results 1 to 10 of 11

SEO URLs

This is a discussion on SEO URLs within the osCMax v2 Features Discussion forums, part of the osCmax v2.0 Forums category; I just uploaded and installed a fresh copy of osCMax 2.0. The installation went off without a hitch. Under "configuration", ...

      
  1. #1
    Lurker
    Join Date
    Feb 2004
    Posts
    3
    Rep Power
    0


    Question SEO URLs

    I just uploaded and installed a fresh copy of osCMax 2.0. The installation went off without a hitch. Under "configuration", "SEO URLs" I set "Enable SEO URLs" to True. When I do this it causes my categories to return 404 "The webpage cannot be found". When Enable SEO URLs is set to False my categories show up as expected. Any help would be appreciated.

  2. #2
    osCMax Developer

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


    Default Re: SEO URLs

    You have to also edit the .htaccess file in the /catalog dir, enabling the rewrite rules.
    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

  3. #3
    New Member
    Join Date
    May 2009
    Location
    Murfreesboro, TN
    Posts
    5
    Rep Power
    0


    Default Re: SEO URLs

    OK...and just how, for us newbies, might this be done? I am having the same problem as the "Houston Lurker"...and could really use the help.

  4. #4
    osCMax Developer

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


    Default Re: SEO URLs

    Download the .htaccess. Edit it in a text editor. Upload it. Not sure what other info you need.
    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

  5. #5
    New Member
    Join Date
    May 2009
    Location
    Murfreesboro, TN
    Posts
    5
    Rep Power
    0


    Default Re: SEO URLs

    Hello Michael...

    First of all, thanks for the reply. It was obviously you who wrote this file in the first place...I'm impressed. I sorry to be such a dummy...I understand the comment tag in HTML is <!-- but I don't see the comment tags here...are the the "#"?

    Anyway...here is the file:

    # $Id: .htaccess 1 2003/06/12 10:53:20 Michael Sasek$
    #
    # This is used with Apache WebServers
    #
    # For this to work, you must include the parameter 'Options' to
    # the AllowOverride configuration
    #
    # Example:
    #
    # <Directory "/usr/local/apache/htdocs">
    # AllowOverride Options
    # </Directory>
    #
    # 'All' with also work. (This configuration is in the
    # apache/conf/httpd.conf file)
    # The following makes adjustments to the SSL protocol for Internet
    # Explorer browsers
    # BOF: Mod RC2A
    #<IfModule mod_setenvif.c>
    # <IfDefine SSL>
    # SetEnvIf User-Agent ".*MSIE.*" \
    # nokeepalive ssl-unclean-shutdown \
    # downgrade-1.0 force-response-1.0
    # </IfDefine>
    #</IfModule>
    # EOF: Mod RC2A
    # If Search Engine Friendly URLs do not work, try enabling the
    # following Apache configuration parameter
    # AcceptPathInfo On
    # Fix certain PHP values
    # (commented out by default to prevent errors occuring on certain
    # servers)
    #<IfModule mod_php4.c>
    # php_value session.use_trans_sid 0
    # php_value register_globals 1
    #</IfModule>
    # BOF: MOD - Ultimate SEO URLs
    ## SEO Url's .htaccess file
    ## If you want to use the Apache Mod-Rewrite method for SEO URL's
    ## NOTE: This requires that you are on an apache web server with mod_rewrite enabled.
    #<IfModule mod_rewrite.c>
    #Options +FollowSymLinks
    #RewriteEngine On
    # Change "catalog" to your catalog directory name:
    #RewriteBase /catalog/
    ## If installed to the base home/root directory, uncomment the below code only:
    #RewriteBase /
    #RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
    #RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
    #RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
    #RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}
    #RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}
    #RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
    #RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
    #RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_ST RING}
    #RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}
    #</ifModule>
    # EOF: MOD - Ultimate SEO URLs


    ...and I'm on an Apache server. Would you please edit this file for me and next time I'll know how to do it myself?

    Again...thanks in advance for your help.

    Tom

  6. #6
    osCMax Developer

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


    Default Re: SEO URLs

    the # is a comment tag. Remove the # sign from the lines you want to uncomment. This is the pertinent section :

    Code:
    # BOF: MOD - Ultimate SEO URLs
    ## SEO Url's .htaccess file
    ## If you want to use the Apache Mod-Rewrite method for SEO URL's
    ## NOTE: This requires that you are on an apache web server with mod_rewrite enabled.
    #<IfModule mod_rewrite.c>
    #Options +FollowSymLinks
    #RewriteEngine On
    # Change "catalog" to your catalog directory name:
    #RewriteBase /catalog/
    ## If installed to the base home/root directory, uncomment the below code only:
    #RewriteBase /
    #RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
    #RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
    #RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
    #RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}
    #RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}
    #RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
    #RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
    #RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_ST  RING}
    #RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}
    #</ifModule>
    # EOF: MOD - Ultimate SEO URLs
    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

  7. #7
    New Member
    Join Date
    May 2009
    Location
    Murfreesboro, TN
    Posts
    5
    Rep Power
    0


    Default Re: SEO URLs

    Hello Michael...

    Thanks for the reply. Here's my edit of the pertinent section of the file:

    # BOF: MOD - Ultimate SEO URLs
    ## SEO Url's .htaccess file
    ## If you want to use the Apache Mod-Rewrite method for SEO URL's
    ## NOTE: This requires that you are on an apache web server with mod_rewrite enabled.
    <IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine On
    # Change "catalog" to your catalog directory name:
    RewriteBase /www/
    ## If installed to the base home/root directory, uncomment the below code only:
    RewriteBase /
    RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
    RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
    RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
    RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}
    RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}
    RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
    RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
    RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_ST RING}
    RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}
    </ifModule>
    # EOF: MOD - Ultimate SEO URLs

    When I upload the file with this edit, I get a 500 error. What could be the problem?

    Tom

  8. #8
    osCMax Developer

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


    Default Re: SEO URLs

    You un-commented both rewrite base settings. Notice the "If installed...."

    You are supposed to pick one or the other.
    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

  9. #9
    New Member
    Join Date
    May 2009
    Location
    Murfreesboro, TN
    Posts
    5
    Rep Power
    0


    Default Re: SEO URLs

    Thanks Michael...

    I tried both methods...one would allow the cart to load (instead of a 500 error), the other wouldn't. The one that let the cart load, however, wouldn't work with the SEO URL's turned on.

    Thanks anyway.

    Tom

  10. #10
    osCMax Developer

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


    Default Re: SEO URLs

    It has to match the path to your site.

    So if your cart is installed in public_html, it needs to be set to /

    If your cart is in the catalog sub directory, it needs to be set to /catalog

    If your cart is in the shop sub directory, it needs to be set to /shop

    It has to point to where your osCMax installation is It is the rewrite base for the rewritten urls.
    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

Page 1 of 2 12 LastLast

Similar Threads

  1. SEO Urls
    By cikez in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 11-05-2008, 07:11 PM
  2. Ultimate SEO URLs
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-27-2008, 09:21 AM
  3. Ultimate SEO URLs
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-27-2008, 05:14 AM
  4. SEO Urls
    By bkpie in forum osCMax v2 Features Discussion
    Replies: 4
    Last Post: 06-20-2007, 06:50 AM
  5. Help with SEO URLs
    By subtleinstrument in forum osCmax v2 Customization/Mods
    Replies: 10
    Last Post: 03-13-2007, 10:35 AM

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
  •