No announcement yet.

.htaccess help needed please.

  • Filter
  • Time
  • Show
Clear All
new posts

  • .htaccess help needed please.

    I am having an issue with my .htaccess file. Currently, my site is using CS-Cart's PHP Shopping Cart software. I edited it because I need my site to read the /upgrade/ instead of the public_html folder and where it will hide/mask the /upgrade/ folder so it wont show it when someone is accessing my site lol. I am having all sorts of issues with it at the moment. Below is a copy of my .htaccess file and it includes what CS-Cart had in it originally. I am still newer to editing this type of stuff, so that is where my problem comes in. Any help would greatly be appreciated. I know it is a mess lol but I was not sure what part of cs-cart code I should keep or delete.

    Oh and the domain is

    # Use PHP 5.3
    #AddType application/x-httpd-php53 .php 
    AddType application/x-httpd-php54 .php
    DirectoryIndex index.html index.php
    <IfModule mod_rewrite.c>
    RewriteEngine on
    # Some hostings require RewriteBase to be uncommented
    # Example:
    # Your store url is
    # So "RewriteBase" should be:
    # RewriteBase /store/cart
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !\.(png|gif|ico|swf|jpe?g|js|css)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . index.php?sef_rewrite=1 [L,QSA]
    RewriteCond %{HTTP_HOST} ^(www\.)?elitestuf\.com$
    RewriteRule ^(.*)$ upgrade/$1 [L]
    # Google Analytics Integration - Added by cPanel.
    <IfModule mod_substitute.c>
    AddOutputFilterByType SUBSTITUTE text/html
    Substitute "s|(<script src='/google_analytics_auto.js'></script>)?</head>|<script src='/google_analytics_auto.js'></script></head>|i"
    # END Google Analytics Integration