Reputation: 195
I'm testing a website that has worked great locally however when I upload it to my godaddy server my SVG's are not rendering in browser.
After some web searches and working with tech support I learned I need to have a .htaccess file configured in my image folder directory to correctly display SVG's.
Can someone please let me know how to create, download, or copy and paste the correct data for a .htaccess?
Upvotes: 2
Views: 3432
Reputation: 146540
I guess you mean setting a proper Content-Type
header. The MIME type is apparently image/svg+xml
and you can use the AddType directive:
# Add one line for each extension
AddType image/svg+xml .svg
Upvotes: 2