Your Time:
Our Time:
← Back to discussions

after changing site URL, no display of font awesome

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 5 replies, 2 voices, and was last updated 9 years, 10 months ago by Anonymous.

  • 2016-10-29 at 1:00 pm
    Support Expired
    #17390
    nobun
    Participant
    • Topics: 3
    • Replies: 6
    • Total posts: 9
    • Post count: 6

    I have changed the site URL from abc.com/wp/ to abc.com/, by change the setting in wordpress and copying wp/index.php to /index.php.

    It displays the site, except for font awesome.
    You can see the site http://www.rengo.ne.jp

    I believe that the site cannot reach font-awesome css.

    2016-10-31 at 10:28 am
    #17404
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Kindly please follow this url http://webmasters.stackexchange.com/questions/71630/font-blocked-from-loading-by-cross-origin-resource-sharing-policy-no-access-co

    Note: Please take a backup of the htaccess file before you do any changes.

    2016-10-31 at 1:08 pm
    Support Expired
    #17419
    nobun
    Participant
    • Topics: 3
    • Replies: 6
    • Total posts: 9
    • Post count: 6

    my .htaccess is now as follows

    
    suPHP_ConfigPath /home/nobu/rengo.ne.jp/xserver_php/
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wp/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wp/index.php [L]
    </IfModule>
    # END WordPress
    AddHandler fcgid-script .php .phps
    FCGIWrapper "/home/nobu/rengo.ne.jp/xserver_php/php-cgi" .php
    FCGIWrapper "/home/nobu/rengo.ne.jp/xserver_php/php-cgi" .phps
    
    <FilesMatch "\.(ttf|otf|eot|woff|woff2)$">
        <IfModule mod_headers.c>
            Header set Access-Control-Allow-Origin "http://rengo.ne.jp"
        </IfModule>
    </FilesMatch>
    

    but it does not solve the problem.

    2016-10-31 at 4:57 pm
    #17423
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    There might be an issue with your server settings because everything seems to be fine with our theme. The issue is not with the theme. While migrating from abc.com/wp/ to abc.com/ something went wrong in your settings. The error with in the console mode says that Access to Font at 'http://rengo.ne.jp/wp/wp-content/themes/hopes/css/fontawesome/fonts/fontawesome-webfont.woff2?v=4.5.0' from origin 'http://rengo.ne.jp' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'http://rengo.ne.jp' that is not equal to the supplied origin. Origin 'http://www.rengo.ne.jp' is therefore not allowed access. seems that it is an issue with your server settings.

    2016-11-01 at 6:39 am
    Support Expired
    #17428
    nobun
    Participant
    • Topics: 3
    • Replies: 6
    • Total posts: 9
    • Post count: 6

    Thanks.

    I will ask the server company about it.

    2016-11-01 at 10:08 am
    #17429
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    We are setting this topic to be resolved. If you wish to update this topic please reply here instead of creating another topic.

    If you have anymore queries, please feel free to ask.

You must be logged in to reply to this topic.