0

I have a site that has multiple domains. Each domain loads the same information but with a different header. For example, appliancerepairtodaynwa.com, appliancerepairtoday.co, and appliancerepairbentonville.com are the same site, but have a different URL and possibly a different header.

I have achieved the affect of having different URLs and all appears to work great on all browsers except Safari. For some reason Safari will only load all contents of the page when going to appliancerepairtodaynwa.com (the primary site).

To achieve this affect using one host, I have my primary site in the root directory, and all additional domains as a subdirectory. For example:

root (appliancerepairtodaynwa.com)
    -> index.php
    -> SubDirectory (such as appliancerepairtoday.co)
        -> index.php

The subdirectory index simply copies the root the main index as an include (include '../index.php') - effectively keeping the all the same information as the root site but with a different URL.

I have a feeling this is something to do with CORS and Safari not loading files (such as the CSS files or images) from a "different" URL. My question is how do I force this? Again, this works perfectly in all other browsers I have tried without issue, so I am stumped why it's not working in Safari.

Apolymoxic
  • 556
  • 10
  • 32
  • Sorry did miss the "form a different URL" part, yes it's related to CORS, see [stackoverflow.com/cross-origin cors-headers with-php](https://stackoverflow.com/questions/8719276/cross-origin-request-headerscors-with-php-headers) – Top-Master Feb 04 '22 at 15:00

0 Answers0