Jump to content

Multiple domains as PS_SHOP_URL


Recommended Posts

Hi,

 

Is it possible to have multiple domains pointing to the same shop?

For example, we are working on a prestashop 1.6 site, and for our test server we have 2 urls:

 

URL 1 is http://client.test.ourcompanyname.net
URL 2 is http://randomname.ourcompanyname.net

URL 1 is the one we use internally in our network, URL 2 is the one we provide to the client so he can test it.

 

however, both URLs point to the same code, to the same database on the same server. If I go to the configuration in the prestashop database, I know I have the change the following things:

ps_configuration table, PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL fields
ps_shop_url table

If I point those fields to URL 1 then for us internally it works, but not for our client. Because when he goes to URL 2, then it automatically redirects to URL 1, which he doesn't have access to.

 

If I point those fields to URL 2, then it works for our client, but not for us internally. Because when we go to URL 1, it redirect to URL 2 and then we are outside of our network, which we don't want ( policy from our IT department)

So my question is - is it possible to have both? That for us URL 1 works, and for our client URL 2 works, without redirecting?

Link to comment
Share on other sites

well, it's only one store. just multiple URLs pointing to it. I've always been under the impression that multistore means something else, but I might be mistaken :)

Could you give me some pointers on how to set this up? When I search for multistore setup, I find a lot of information, but not this specific part about 2 URLs pointing to the same store.

Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...