Options -Indexes
# BEGIN WordPress
RewriteEngine On
RewriteBase /transparencycanada.ca/trunk/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /transparencycanada.ca/trunk/index.php [L]
# END WordPress
# gzip / Headers
# force deflate for mangled headers
# developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping/
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
# HTML, TXT, CSS, JavaScript, JSON, XML, HTC:
FilterDeclare COMPRESS
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/html
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/css
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/plain
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/x-component
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/javascript
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/json
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/xhtml+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/rss+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/atom+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/vnd.ms-fontobject
FilterProvider COMPRESS DEFLATE resp=Content-Type $image/svg+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/x-font-ttf
FilterProvider COMPRESS DEFLATE resp=Content-Type $font/opentype
FilterChain COMPRESS
FilterProtocol COMPRESS DEFLATE change=yes;byteranges=no
# Legacy versions of Apache
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml
AddOutputFilterByType DEFLATE application/atom+xml
AddOutputFilterByType DEFLATE image/svg+xml application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font-ttf font/opentype
#Apache deflate module is not defined, active the page compression through PHP ob_gzhandler
php_flag output_buffering On
php_value output_handler ob_gzhandler
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# content redirects #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# projects
#http://www.transparencycanada.ca/what-we-do/our-projects/mining-for-sustainable-development/
RewriteRule ^what-we-do/our-projects/mining-for-sustainable-development/$ /tica-project/mining-for-sustainable-development/ [R=301,L]
#http://www.transparencycanada.ca/what-we-do/our-projects/beneficial-ownership-transparency/
RewriteRule ^what-we-do/our-projects/beneficial-ownership-transparency/$ /tica-project/beneficial-ownership-transparency/ [R=301,L]
#http://www.transparencycanada.ca/what-we-do/our-projects/capacity-building-and-western-canada-outreach/
RewriteRule ^what-we-do/our-projects/capacity-building-and-western-canada-outreach/$ /tica-project/capacity-building-and-western-canada-outreach/ [R=301,L]
# publications
#http://www.transparencycanada.ca/what-we-do/publications/oecd-convention-enforcement-progress/
RewriteRule ^what-we-do/publications/oecd-convention-enforcement-progress/$ /tica-publication/oecd-convention-enforcement-progress/ [R=301,L]
#http://www.transparencycanada.ca/what-we-do/publications/mechanism-for-follow-up-on-the-implementation-of-the-inter-american-convention-against-corruption-mesicic-reports/
RewriteRule ^what-we-do/publications/mechanism-for-follow-up-on-the-implementation-of-the-inter-american-convention-against-corruption-mesicic-reports/$ /tica-publication/mechanism-for-follow-up-on-the-implementation-of-the-inter-american-convention-against-corruption-mesicic-reports/ [R=301,L]
#http://www.transparencycanada.ca/what-we-do/publications/united-nations-convention-against-corruption-uncac-reports/
RewriteRule ^what-we-do/publications/united-nations-convention-against-corruption-uncac-reports/$ /tica-publication/united-nations-convention-against-corruption-uncac-reports/ [R=301,L]
#http://www.transparencycanada.ca/what-we-do/publications/reports/
RewriteRule ^what-we-do/publications/reports/$ /tica-publication/reports/ [R=301,L]
#