GetSimple Support Forum

Full Version: Embedding an svg logo in the header.inc.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

this may be not a Getsimple problem but a webserver problem...

I tried to embed an svg logo like in this instruction:

https://www.mediaevent.de/svg-in-einem-image-tag/

Code:
<svg width="96" height="96">
   <image xlink:href="svg.svg" src="svg.png" width="96" height="96"/>
</svg>

which claims to be very elegant, with a fallback png file for non-svg browsers.

It works fine on my WAMP server, but not on my web server. There I get none of the both logo files. It is empty...

It was also not possible just to embed the svg image with img src="" like a png image, there seems to be a delivering problem with svg files on the server. And: a link to an svg file shows not the rendered file but its source code.

Could anybody help me with this?

Thank you
Hypertexter
Server Mime settings
Hi shawn_a,

I added this to my .htaccess file:


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

Did you mean that? It did not help.

Hypertexter
Oh. It seems to be a Getsimple problem!

The same svg file in the root of my webspace is displayed without problems. Only in the /data/uploads folder it is displayed as a text file.
But other image files in /data/uploads like jpg or png are no problem. Huh



Hypertexter
Exclamation  This was the culprit:


Code:
#RewriteRule ^data/uploads/(.*)$ plugins/download_interceptor/intercept.php?file=$1 [L]


in .htaccess.

But I liked download interceptor... why does it swallow svg files?

Hypertexter