bikhs Posted March 26, 2011 Share Posted March 26, 2011 Hey allAm new to prestashop and am attempting to install to a 1 and 1 hosted server. The issue I have is a:Error 403 - ForbiddenYou tried to access a document for which you don't have privileges.URL www.mysite.net/prestashop/installThere is another main website already running in the root so have dropped the prestashop into a seperate directory on the root. Have loaded prestashop v1.3.7.0 to the server and have the following code added to the root directory of the site in a .htaccess file: (is the .htaccess file mean to be in the prestashop folder or the root of the server??)P.S - I got the following code below from the forum for 1 and 1 hosting specific problems: http://www.prestashop.com/forums/viewthread/640/installing_prestashop/1_amp1_hosting_service__specific_problems-----------------------------------------AddType x-mapp-php5 .php# URL rewriting module activationRewriteEngine onRewriteBase /# URL rewriting rulesRewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L,E]RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [L,E]RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang;=$1$5 [L,E]RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang;=$1$4 [L,E]RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang;=$1 [QSA,L,E]RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E]RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]RewriteRule ^lang-([a-z]{2})/(.*)$ /$2?isolang=$1 [QSA,L,E]# Catch 404 errorsErrorDocument 404 /404.phpNow for a 1 and 1 hosting, is this .htaccess file actually correct? Where am I going wrong? Am fairly new to php too so not sure where I am going wrong. I have also changed the permissions on the prestashop folder to 777 read/write/exec all and to the install folder but no joy.Any help will be great from anyone who may have had a similar issue???Thank you in advance Bikhs Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now