FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Need a .htaccess file to process ssi AND allow scripts





patasarriba
I use a .htaccess file to allow SSI on .html pages. The file I have now says the following:

Quote:

AddType text/html .shtml
AddHandler server-parsed .html
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes


It does its job as far as allowing SSI. BUT, whenever I try to use scripts (blog, shopping cart, etc.), I get a very evil 403 Forbidden message.

Quote:

Forbidden
You don't have permission to access /cart/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Does anyone know how I could write a .htaccess file to allow my SSI on all pages but also allow scripts and programs? Thank you in advance!!!!!

Sandra
MrBlueSky
And the scripts, like /cart/index.php, work if you don't put the .htaccess file in the directory?
patasarriba
When I eliminate .htaccess files from the CGI directories, or modify them, or do anything else, it makes no difference! The .htaccess file in the root directory seems to be blocking permission throughout the entire site.
Related topics
.htaccess tutorial
Custom error pages using .htaccess
How To : Secure Your PHP Website
Reducing Exploits
.htaccess problem
protecting a file with htaccess
.htaccess and FTP
htaccess
Master Tutorial on SEO
Script to make files chmod themselves.
Forbidden message after upload .htaccess file
.htaccess file
General .htaccess tutorial.
Htaccess file in Filezilla
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.