Jump to content

1 and 1 hosting - 403 forbidden error :s


Recommended Posts

Hey all

Am new to prestashop and am attempting to install to a 1 and 1 hosted server. The issue I have is a:

Error 403 - Forbidden
You tried to access a document for which you don't have privileges.

URL www.mysite.net/prestashop/install

There 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 activation
RewriteEngine on
RewriteBase /

# URL rewriting rules
RewriteRule ^([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 errors
ErrorDocument 404 /404.php

Now 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 :D

Bikhs

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...