Jump to content
Larry Ullman's Book Forums

MikeW

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by MikeW

  1. Had problems with .htaccess and navigating - worked through that by rewriting the .htaccess file

     

    This is what worked

    RewriteEngine on

    # For sales:

    RewriteRule ^shop/sales/?$ sales.php

    # For the primary categories:

    RewriteRule ^shop/([^/]*)/$ shop.php?type=$1

    # For specific products:

    RewriteRule ^browse/([^/]*)/([^/]*)/([^/]*)$ browse.php?type=$1&category=$2&id=$3

     

    Cart and wishlist handle perfect.

     

    When I type in the code to handle https - to make sure it's not a hidden character issue I get 500 errors all the time.

     

    I have an ssl certificate installed.

     

    RewriteCond %{HTTPS} off

    RewriteRule ^(checkout\.php(billing\.php|final\.php|admin/(.*))$ https://%(HTTP_HOST)/$1 [R=301,L]

    RewriteCond %(HTTPS) off RewriteRule ^(checkout\.php|billing\.php|final\.php|admin/(.*))$ https://%(HTTP_HOST)/$1 [R=301,L]

     

    If I uncomment either line I get the 500 error when loading any page.

     

    Running xammp 1.7.4

    PHP 5.3.5

    Apache 2.2.17

    Mysql 5.5.8

×
×
  • Create New...