Zen Follower
- Join Date:
- Feb 2010
- Posts:
- 205
- Plugin Contributions:
- 0
htaccess nightmares - why is this file such a mystery
Ok, I've been having issues with my website cheapsheetmusic dot com and I believe the problem may have to do with an old installation of simple-url. I tried it (unsuccessfully) and then removed it. I found a much better program (ceon url) and am trying to install it. They refer to an htaccess modification and I realized that the simple-url program may have modified my htaccess. Here it is:
BOF SSU
Options +FollowSymLinks -MultiViews
RewriteEngine On
Make sure to change "zencart" to the subfolder you install ZC. If you use root folder, change to: RewriteBase /
#RewriteBase /zencart/
RewriteBase /
Deny access from .htaccess
RewriteRule ^.htaccess$ - [F]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.+) index.php/$1 [E=VAR1:$1,QSA,L,PT]
alternative rewrite rule, seem to work on GoDaddy hosts http://codeigniter.com/wiki/Godaddy_Installaton_Tips/
to use it, please make sure you comment out the rewrite rule above, then uncomment the line below
RewriteRule ^(.*)$ /index.php?$1 [L]
EOF SSU
BOTTOM LINE: I AM LOOKING TO MODIFY THIS FILE SO IT WORKS WITH CEON. HERE IS THE INFO FROM CEON:
Apache Webserver
The server appears to be using the Apache webserver.
The rule below should be placed in a .htaccess file or the VirtualHost Directive for the site (although in this case the rule will have to modified slightly).
If using a .htaccess file
If placing the rule in a .htaccess file, the .htaccess file into which it should be placed is the site root's .htaccess file, which is:
cheapsheetmusic.DOT.com/.htaccess
If using an Apache VirtualHost Directive
If the store runs on a server using Apache and it is possible to modify the VirtualHost Directive for the store, then the rule can be modified and entered into the VirtualHost Directive for the store.
Simply add a slash to the front of index.php, to make the rule compatible with the VirtualHost Directive:
RewriteRule .* /index.php [QSA,L]
ANY ADVICE ON HOW I CAN MODIFY THIS FILE SO CEON WORKS (WITHOUT 401 ERRORS) I WILL BE SO GRATEFUL! THX