.htaccess help needed., I am sure it is an easy/simple fix. Please help me. |
.htaccess help needed., I am sure it is an easy/simple fix. Please help me. |
Jason Bull |
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.
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 |
pandy |
Jan 15 2014, 07:13 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,753 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 http://www.elitestuf.com/upgrade/ ? If you deny access to that folder index.php won't show. |
Lo-Fi Version | Time is now: 21st September 2024 - 05:45 PM |