www.webdeveloper.com
Results 1 to 3 of 3

Thread: [RESOLVED] SVG promblems on Server

  1. #1
    Join Date
    Jul 2012
    Posts
    3

    resolved [RESOLVED] SVG promblems on Server

    Hello. I've created my first web-site with entirely SVG graphics. It works fine in the browser when I'm just testing it on my computer, but when I upload it to the server, odd things happen. On chrome, it downloads the svg files and doesn't display anything on the page, and in Firefox it says that I'm missing a plug-in to see the SVGs but cannot identify the plugin that is needed.

    All the SVGs on the page are put either as a background image, or within an object tag. Is there anything I should do to my code or any settings I could change on the server (hosted by GoDaddy) that would make the SVGs display themselves propperly? Thanks.

  2. #2
    Join Date
    Oct 2009
    Posts
    658
    Does your server allow image/svg+xml svg mimetypes?
    Good Luck

    Santos Systems

  3. #3
    Join Date
    Jul 2012
    Posts
    3
    I solved it now. I just needed to include a file named ".htaccess" with the following code and it worked.

    Code:
    AddType image/svg+xml svg
    AddType image/svg+xml svgz

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles