Jump to content

Prestashop in a subfolder - two htaccess files are interfering


Recommended Posts

It is driving me nuts. I have the main domain which has a joomla site. Then in a subfolder called 'shop' i have prestashop installed. For SEO optimization i have the famous non-WWW to WWW redirect in the htaccess.
But this does not work for the subfolder /shop. It seems that the second .htaccess (from prestashop) is interfering. When i disable the PS htaccess it works well.
Anybody has a solution to this double htaccess problem, or experienced it also ?

So the main domain is http://pickupoprema.si
In the 1st htaccess this is rewritten to www.pickupoprema.si with this rule :

RewriteCond %{HTTP_HOST} ^pickupoprema.si(.*)
RewriteRule ^(.*)$ http://www.pickupoprema.si/$1 [R,L]

The 2nd htaccess from PS is using the default rules that are generated by PS.

When i visit http://pickupoprema.si it is redirect to WWW . etc etc
But when i visit http://pickupoprema.si/shop it is not redirected....

Link to comment
Share on other sites

  • 1 year later...

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...