The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> .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 www.elitestuf.com

CODE
# 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 http://www.yourcompany.com/store/cart
# 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]

</IfModule>


# 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"
</IfModule>
# END Google Analytics Integration
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic
Jason Bull   .htaccess help needed.   Jan 14 2014, 05:24 PM
pandy   Not sure that I understand what you want to do, bu...   Jan 15 2014, 07:13 AM


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

 



- Lo-Fi Version Time is now: 29th March 2024 - 05:28 AM