Helsingin-kaupungin-tietokeskus/wordpress/master/.htaccess - Htaccess File

Helsingin-kaupungin-tietokeskus/wordpress/master/.htaccess

RewriteEngine On
RewriteRule ^((fi/|en/|sv/)?(packages|package|dataset|resource|related|revision|licenses|rating|ckan-admin|user|login_generic|harvest|activity|dashboard|api|storage|feeds|fanstatic|images|base|organization|group|multiedit)(.*))$ http://ckan.hri.fi/$1  [L,P]
RewriteBase /

RedirectMatch permanent ^/$ /fi/

RewriteRule ^index.php$ - [L]

# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
RewriteRule . index.php [L]

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, static

Comments

Apache