# Remember to enable display_errors on development environments only.
<IfModule mod_php5.c>
php_value display_errors 1
php_flag register_globals off
</IfModule>
RewriteEngine on
# If know that mod_rewrite is enabled, but you are still getting mod_rewrite errors,
# uncomment the line below and replace "/" with your base directory.
# RewriteBase /
##
## europeana developer section
##
# example, dont keep active
# RewriteRule ^alice.html$ /index.php [L,R]
# special case use english and drop introduction
RewriteRule exhibits/show/art-nouveau/introduction /exhibits/show/art-nouveau-en/ [L,R]
# special case theme index page
RewriteRule exhibits/show/art-nouveau/themes /exhibits/show/art-nouveau-en/art-nouveau-themes/ [L,R]
# Special case, items
# RewriteRule items/show/(.*)$ /exhibits/show/art-nouveau-en/mastercrafts/item/$1 [L,R]
# Special case, credits for art-nouveau
RewriteRule art-nouveau/credits /credits-art-nouveau?theme=art-nouveau [L,R]
# DOES NOT WORK AS IS!!!
# Special case, browse items, hide the global list, point to art nouveau
### RewriteRule items/browse /items/browse/?tags=art-nouveau&theme=art-nouveau [L,R]
# generic rule, point to the english version if no lang is given
RewriteRule exhibits/show/art-nouveau/(.*)$ /exhibits/show/art-nouveau-en/$1 [L,R]
# Responsive Images
# Mobile-First images that scale responsively and responsibly
# Copyright 2010, Scott Jehl, Filament Group, Inc
# Dual licensed under the MIT or GPL Version 2 licenses.
# //Start Responsive Images
#RewriteEngine On
# direct image requests to temp
#RewriteCond %{QUERY_STRING} full=(.*)&?
#RewriteRule (.*)rwd-router/.*.(jpe?g|png|gif|webp) $1%1 [L]
# ignore trap for non-image requests, rewrite URL without trap segment
#RewriteRule (.*)rwd-router/(.*)$ $1$2
# Redirect to Dean's splash page:
#RewriteRule ^$ splash/splash.html [L]
#RewriteRule ^/exhibits/browse /splash/splash.html [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^admin/ - [C]
RewriteRule .* admin/index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php
<FilesMatch ".(php|ini)$">
Order Allow,Deny
Deny from all
</FilesMatch>
<Files index.php>
Allow from all
</Files>
# Uncomment the lines below in order to enable caching of some files via Apache (after a finished site has gone live)
<IfModule mod_expires.c>
# <FilesMatch ".(js|ico|gif|jpg|png|css)$">
# ExpiresActive on
# ExpiresDefault "access plus 10 day"
# </FilesMatch>
</IfModule>