Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Web Server Configuration _ .htaccess help needed.

Posted by: Jason Bull Jan 14 2014, 05:24 PM

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 http://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

Posted by: pandy Jan 15 2014, 07:13 AM

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 http://www.elitestuf.com/upgrade/ ? If you deny access to that folder index.php won't show.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)