Jump to content

med

Member
  • Posts

    9
  • Joined

  • Last visited

Posts posted by med

  1. Thanks Bsmither,

    i did it in another way but, below is the message i got when i want to open the storefront:

    Please edit this file in the stores root directory with the following content.

    ##### START CubeCart .htaccess #####

    ## File Security
    <FilesMatch "\.(htaccess)$">
     Order Allow,Deny
     Deny from all
    </FilesMatch>

    #### Apache directory listing rules ####
    DirectoryIndex index.php index.htm index.html
    IndexIgnore *

    #### Rewrite rules for SEO functionality ####
    <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /
     
      ######## START v4 SEO URL BACKWARD COMPATIBILITY ########
      RewriteCond %{QUERY_STRING} (.*)$
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule cat_([0-9]+)(\.[a-z]{3,4})?(.*)$ index.php?_a=category&cat_id=$1&%1 [NC]

      RewriteCond %{QUERY_STRING} (.*)$
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule prod_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=product&product_id=$1&%1 [NC]

      RewriteCond %{QUERY_STRING} (.*)$
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule info_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=document&doc_id=$1&%1 [NC]

      RewriteCond %{QUERY_STRING} (.*)$
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule tell_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=product&product_id=$1&%1 [NC]

      RewriteCond %{QUERY_STRING} (.*)$
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule _saleItems(\.[a-z]+)?(\?.*)?$ index.php?_a=saleitems&%1 [NC,L]
      ######## END v4 SEO URL BACKWARD COMPATIBILITY ########

      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_URI} !=/favicon.ico
      RewriteRule ^(.*)\.html?$ index.php?seo_path=$1 [L,QSA]
    </IfModule>

    ## Default store 404 page
    ErrorDocument 404 /index.php

    ##### END CubeCart .htaccess #####


    ##### START CubeCart .htaccess #####

    ## File Security
    <FilesMatch "\.(htaccess)$">
     Order Allow,Deny
     Deny from all
    </FilesMatch>

    #### Apache directory listing rules ####
    DirectoryIndex index.php index.htm index.html
    IndexIgnore *

    #### Rewrite rules for SEO functionality ####
    <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /
     
      ######## START v4 SEO URL BACKWARD COMPATIBILITY ########
      RewriteCond %{QUERY_STRING} (.*)$
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule cat_([0-9]+)(\.[a-z]{3,4})?(.*)$ index.php?_a=category&cat_id=$1&%1 [NC]

      RewriteCond %{QUERY_STRING} (.*)$
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule prod_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=product&product_id=$1&%1 [NC]

      RewriteCond %{QUERY_STRING} (.*)$
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule info_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=document&doc_id=$1&%1 [NC]

      RewriteCond %{QUERY_STRING} (.*)$
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule tell_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=product&product_id=$1&%1 [NC]

      RewriteCond %{QUERY_STRING} (.*)$
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule _saleItems(\.[a-z]+)?(\?.*)?$ index.php?_a=saleitems&%1 [NC,L]
      ######## END v4 SEO URL BACKWARD COMPATIBILITY ########

      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_URI} !=/favicon.ico
      RewriteRule ^(.*)\.html?$ index.php?seo_path=$1 [L,QSA]
    </IfModule>

    ## Default store 404 page
    ErrorDocument 404 /index.php

    ##### END CubeCart .htaccess #####

     

    what would i do for the store to open fine

×
×
  • Create New...