Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1165121
    qred
    Participant

    My problem is that the icons are showing on https://kgotla.com , but not on https://www.kgotla.com

    Is there a way to work around this?

    Chrome Inspect on load https://www.kgotla.com:

    Font from origin ‘https://kgotla.com’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://www.kgotla.com’ is therefore not allowed access.

    Font from origin ‘https://kgotla.com’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://www.kgotla.com’ is therefore not allowed access.
    https://kgotla.com/wp-content/themes/x/framework/fonts/font_awesome/fontawesome-webfont.ttf?v=4.5.0 Failed to load resource: the server responded with a status of 404 (Not Found)

    Based on information on this forum, I edited .htaccess:

    
    Header add Access-Control-Allow-Origin “https://kgotla.com”
    Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
    Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    # Apache config
    <FilesMatch “.(eot|ttf|otf|woff)”>
    Header set Access-Control-Allow-Origin “https://kgotla.com”
    </FilesMatch>
    
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule !(js|ico|gif|jpg|png|css|swf|flv|libraries|maint|admin|login|logout|reg|woff) index.php [QSA,L]
    
    </IfModule>
    <IfModule mod_headers.c>
        Header set Access-Control-Allow-Origin "*"
    </IfModule>
    #1165751
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! Are you using CloudFlare or may have installed a caching plugin like WordFence, W3 Total Cache or WP Super Cache? Please keep in mind that after doing every updates, always remember to clear all caches when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.

    Please let us know how it goes.

  • <script> jQuery(function($){ $("#no-reply-1165121 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>