Jump to content

Multi store non www redirect to wrong page and more problems..


Recommended Posts

Hey all,

 

I registered a new domain lately and I thought I had it working untill I found out that www.domain.com works but domain.com redirect to the main store wich is a totally different domain name.

 

According to this post https://www.prestashop.com/forums/topic/336630-redirect-non-www-url-to-www-for-multistore-in-16/?do=findComment&comment=1801953

I had to edit the HTACCES wich I did, but unfortunatly it does not work for me.

 

So what am i doing wrong here?

 

I have made a pointer in directadmin with alias ticked on.

 

The domain we are talking about is EDIT

with www, it works but without it goes to my main shop.

 

 

Now my second question.

I have set the second store with the same default template. If i change a tpl file in a module, will both stores be affected? What if i want to have different values for some stuff. How exactly do I know what files are for shop 1 and what for shop2 when i look in filezilla?

Edited by animuz1 (see edit history)
Link to comment
Share on other sites

Ok so clearing cache did the trick..

 

Now another question.. if  htacces auto generates the file, the RewriteEngine settings change from:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

 

to

 

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.my-icover.nl$
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

 

Why is this happening and how can i stop this?

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