title: Apache Server not serving SVGs
body: <p>What settings do I need to set in order to make Apache serve SVGs?</p>
  <p><strong>What I found:</strong></p>
  <p>These questions document the use of .htaccess to serve the SVGs with the correct MIME type &quot;image/svg+xml&quot; <a href="https://stackoverflow.com/questions/6817577/svg-images-not-displaying-on-certain-web-servers">SVG images not displaying on certain web servers</a> / <a href="https://mid.as/kb/00134/configuring-server-to-handle-svg-images" rel="nofollow noreferrer">https://mid.as/kb/00134/configuring-server-to-handle-svg-images</a> / <a href="https://davidwalsh.name/serve-svg-image" rel="nofollow noreferrer">https://davidwalsh.name/serve-svg-image</a></p>
  <p>This question handles the <a href="https://serverfault.com/questions/836670/requested-url-not-found-when-file-not-in-url">Requested URL not found</a></p>
  <p>None of these helped resolve this issue.</p>
  <p><strong>Files:</strong></p>
  <p>.htaccess:</p>
  <pre><code>AllowOverride All
  
  RewriteEngine on
  
  AddType image/svg+xml svg
  </code></pre>
  <p><strong>Folder structure:</strong></p>
  <p><a href="https://i.stack.imgur.com/HNR5V.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HNR5V.png" alt="enter image description here" /></a></p>
  <p><strong>Result:</strong></p>
  <p><a href="https://i.stack.imgur.com/g0jZT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/g0jZT.png" alt="enter image description here" /></a></p>
  <p><strong>Other:</strong></p>
  <p>Different files like .png work. I also tested it with Node (npx http-server) which worked.</p>