1
0
Fork 0
mirror of https://github.com/fmap/muflax65ngodyewp.onion synced 2024-06-26 10:26:48 +02:00
muflax65ngodyewp.onion/content/htaccess.erb
muflax 0852e28e75 first step towards multiple sites
* multiple styles, layouts
* shared content
* central pigs
* conditional htaccess
* first half of multiple configs
2012-04-11 12:04:41 +02:00

25 lines
509 B
Plaintext

---
is_hidden: true
non_cognitive: true
---
# manual 404 page
ErrorDocument 404 /404/index.html
# rewrite stuff
RewriteEngine on
# don't alienate people who use the old feed
RewriteRule ^feed/? /rss.xml
<% unless main_site? %>
# store pigs in central site
RewriteRule ^pigs/(.+)$ http://muflax.com/pigs/$1 [L]
<% end %>
# serve gzipped files if available
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME} !\.gz$
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.*)$ $1.gz [L]