Jump to content

.htaccess deny problem


caston

Recommended Posts

Hi Guys

I'm using prestashop cloud hosting and accidentally deleted .htaccess file. 

The problem is images in slideshow not showing.

 

I tried create a new htaccess file with function:

 

<IfModule mod_env.c>

SetEnv HTTP_PS_HOST_MODE_ true

SetEnv HTTP_PS_VERSION_ 1.6.0.13

SetEnv HTTP_PS_ROOT_DIR_ "/homez.106/pca8798606/www/"

SetEnv HTTP_PS_ONDEMAND_DIR_ "/core/www"

setEnv HTTP_PS_MODE_DEV_ false

</IfModule>

 

RewriteEngine on

RewriteRule .* - [E=HTTP_PS_HOST_MODE_:true]

RewriteRule .* - [E=HTTP_PS_VERSION_:1.6.0.13]

RewriteRule .* - [E=HTTP_PS_ROOT_DIR_:"/homez.106/pca8798606/www/"]

RewriteRule .* - [E=HTTP_PS_ONDEMAND_DIR_:"/core/www"]

RewriteRule ^backoffice/filemanager/(.php)$ %{ENV:HTTP_PS_ONDEMAND_DIR_}/index.php$ [QSA,L]

RewriteRule ^backoffice/filemanager/(.*)(?<!\.php)$ /admin-%{ENV:HTTP_PS_VERSION_}/filemanager/$1 [QSA,L]

RewriteRule ^api/?(.*)$ %{ENV:HTTP_PS_ONDEMAND_DIR_}/index.php?url=$1 [QSA,L]

RewriteCond %{REQUEST_FILENAME} !backoffice/(.*\.php)?$ [NC]

RewriteRule ^backoffice/(.*)$ /admin-%{ENV:HTTP_PS_VERSION_}/$1 [QSA,L]

RewriteRule ^js/(.php)$ %{ENV:HTTP_PS_ONDEMAND_DIR_}/index.php$ [QSA,L]

RewriteRule ^js/(.*)(?<!\.php)$ /js-%{ENV:HTTP_PS_VERSION_}/$1 [QSA,L]

RewriteRule ^img/admin/(.*)$ /img-admin-%{ENV:HTTP_PS_VERSION_}/$1 [QSA,L]

RewriteRule ^docs/(.*)$ /docs-%{ENV:HTTP_PS_VERSION_}/$1 [QSA,L]

 

# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again

# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution


 

<IfModule mod_rewrite.c>

<IfModule mod_env.c>

SetEnv HTTP_MOD_REWRITE On

</IfModule>

 

RewriteEngine on

RewriteCond %{HTTP:Authorization} ^(.*)

RewriteRule . - [E=HTTP_AUTHORIZATION:%1]

 

#Domain: ayres.tk

RewriteRule . - [E=REWRITEBASE:/]

RewriteRule ^api$ api/ [L]

 

RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

 

# AlphaImageLoader for IE and fancybox

RewriteRule ^images_ie/?([^/]+)\.(jpeg|jpg|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]

</IfModule>

 

AddType application/vnd.ms-fontobject .eot

AddType font/ttf .ttf

AddType font/otf .otf

AddType application/x-font-woff .woff

<IfModule mod_headers.c>

<FilesMatch "\.(ttf|ttc|otf|eot|woff|svg)$">

Header add Access-Control-Allow-Origin "*"

</FilesMatch>

</IfModule>

 

#If rewrite mod isn't enabled

ErrorDocument 404 /index.php?controller=404

 

# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again

 

 

Please is anybody know how to do it???

My website: http://ayres.tk/

Edited by caston (see edit history)
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...