I’m hosting my website on Xserver (http://jakejapancompany.jp) and having trouble with SVG files. They aren’t being served with the correct MIME type (image/svg+xml) and are instead recognized as document. Because of this, the WordPress plugin Fancy Product Designer can’t load the files properly.
Here’s what I’ve tried:
Added this code to my .htaccessfile:
apacheCopy code
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "http://jakejapancompany.jp"
</IfModule>
AddType image/svg+xml .svg
Cleared both the server and browser cache.
Checked that the file name and upload were correct.
Even after this, the issue isn’t fixed, and the plugin still can’t load the SVG files.
Questions:
How can I get Xserver to serve .svg files with the correct MIME type (image/svg+xml)?
Is there a way to make sure .htaccess settings for MIME types work on Xserver?
If anyone has had this problem and fixed it, I’d really appreciate your help. Thank you!
Hi everyone,
I’m hosting my website on Xserver (
http://jakejapancompany.jp
) and having trouble with SVG files. They aren’t being served with the correct MIME type (image/svg+xml
) and are instead recognized asdocument
. Because of this, the WordPress plugin Fancy Product Designer can’t load the files properly.Here’s what I’ve tried:
.htaccess
file:Even after this, the issue isn’t fixed, and the plugin still can’t load the SVG files.
Questions:
.svg
files with the correct MIME type (image/svg+xml
)?.htaccess
settings for MIME types work on Xserver?If anyone has had this problem and fixed it, I’d really appreciate your help. Thank you!
Best regards,
0 Votes
0 Comments
Login or Sign up to post a comment