This topic has 5 replies, 2 voices, and was last updated 9 years, 10 months ago by Anonymous.
Viewing 6 posts - 1 through 6 (of 6 total)
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.
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.
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.
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.
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.