2 domains same wordpress installation – icons disappear

This topic has 4 replies, 2 voices, and was last updated 10 years, 2 months ago ago by Jack Richardson

  • Avatar: yaronfa
    yaronfa
    Participant
    September 29, 2015 at 14:46

    Hello,

    I have configured the site to work on 2 domains (right now it’s subdomains but will be domains).

    After I’ve done this, I can’t see icons (I think bootstrap ones) on the second website.
    for example: return to top, category link icons.

    Primary site: test.geemarc.com

    second site (points to the same location): test2.geemarc.com
    Icons disappear on test2.geemarc.com

    for enabling 2 domains on the same installation I’ve added this to wp-config.php:
    define(‘WP_SITEURL’, ‘http://’ . $_SERVER[‘HTTP_HOST’]);
    define(‘WP_HOME’, ‘http://’ . $_SERVER[‘HTTP_HOST’]);

    Thank you

    3 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 29, 2015 at 15:50

    Hello,

    Please add this code in .htaccess file via FTP for your site and check it after that:

    <IfModule mod_headers.c>
       Header set Access-Control-Allow-Origin "*"
    </IfModule>

    Best regards,
    Jack Richardson.

    Avatar: yaronfa
    yaronfa
    Participant
    September 29, 2015 at 16:36

    Thank you! that worked!

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 29, 2015 at 17:09

    Hello,

    You’re welcome.

    Best regards,
    Jack Richardson.

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘2 domains same wordpress installation – icons disappear’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.