2
我上传我的网站到godaddy在本地工作后,现在所有的SVG显示为代码而不是图像。我得到的唯一工作是将SVG没有显示在godaddy WordPress站点
AddType image/svg+xml .svg .svgz
添加到htaccess文件中。与此有关的是它然后打破了我在WordPress的网站链接。当我重置永久链接来修复svg的不再工作。不知道为什么。这是我的访问文件的样子。
# BEGIN WordPress
AddType image/svg+xml .svg .svgz
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /staging/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /staging/index.php [L]
</IfModule>
# END WordPress