Maps with differents domain alias

This topic contains 6 replies, has 3 voices, and was last updated by  josecristhian 10 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #37097

    josecristhian
    Expired Member
    Post count: 24

    Hi, I have two domains in the same hosting/directory, with the main domain the map works fine but with the second one the map is not loading.

    #37098

    josecristhian
    Expired Member
    Post count: 24
    This reply has been marked as private.
    #37129

    Guust
    Moderator
    Post count: 29970
    This reply has been marked as private.
    #37208

    josecristhian
    Expired Member
    Post count: 24
    This reply has been marked as private.
    #37209

    Guust
    Moderator
    Post count: 29970

    “When you say: You would have to make sure that all your references are relative instead of absolute, they should not have a reference to a domain name.
    Where do I have to do that?”

    You cannot really. You can only have one domain. You can do a redirect, but not a park.

    #37218

    Paolo
    Site Admin
    Post count: 31211

    HI,

    the map is loaded via Ajax calls.

    dirbol.com is trying to load the markers quering buscaquecomer.com database.

    The only way you could do that would be by enabling cross-origin resource sharing: CORS, but I highly recommend not to, because you could expose your database to malicious actions.

    Just FYI, google will not like what you are doing (2 identical website under different domains and will not even index one of the 2).

    Why don’t you simply apply a 301 redirect from dirbol.com to buscaquecomer.com? That would be the correct way to do this.

    Thx

    #37360

    josecristhian
    Expired Member
    Post count: 24

    thank you, understood.

Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount