The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

Reply to this topicStart new topic
> .htaccess help needed., I am sure it is an easy/simple fix. Please help me.
Jason Bull
post Jan 14 2014, 05:24 PM
Post #1

Group: Members
Posts: 1
Joined: 14-January 14
Member No.: 20,228

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. laugh.gif

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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
post Jan 15 2014, 07:13 AM
Post #2

Don't like donuts. Don't do MySpace.

Group: WDG Moderators
Posts: 18,403
Joined: 9-August 06
Member No.: 6

Not sure that I understand what you want to do, but what did you change in the .htaccess file?

In what way do you want to hide ? If you deny access to that folder index.php won't show.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:


- Lo-Fi Version Time is now: 20th October 2019 - 02:02 PM