datafunk/datawrapper/master/www/bak.htaccess - Htaccess File

datafunk/datawrapper/master/www/bak.htaccess

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]

# 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]

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI, static

Comments

Apache