RewriteEngine On
# Some hosts may require you to use the `RewriteBase` directive.
# If you need to use the `RewriteBase` directive, it should be the
# absolute physical path to the directory that contains this htaccess file.
#
# RewriteBase /
# RewriteCond %{REQUEST_URI} ^/docs/.* [NC]
RewriteRule ^docs/(.*)$ http://docs.datawrapper.de/en/$1 [L]
RewriteCond %{QUERY_STRING} c=3U
RewriteRule ^index.php https://datawrapper.dwcdn.net/ViGuy/1/ [L]
# redirect chart asset to /static/ in order to
# simulate the situation after publication
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^chart/.{5}/assets/(.+)$ /static/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml
AddOutputFilterByType DEFLATE application/javascript application/x-javascript
</IfModule>