1
0
Fork 0
mirror of https://github.com/fmap/muflax65ngodyewp.onion synced 2024-07-01 10:46:49 +02:00
muflax65ngodyewp.onion/content/htaccess.erb
2012-04-16 19:28:41 +02:00

30 lines
657 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
# store pigs in central site
<% unless main_site? %>
RewriteRule ^pigs/(.+)$ http://muflax.com/pigs/$1 [L]
<% end %>
# redirect old wordpress links
<% @site.slug_items.each do |item| %>
RewriteRule ^<%= item[:slug].chop %> <%= item.identifier.strip %>
<% end %>
# serve gzipped files if available
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME} !\.gz$
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.*)$ $1.gz [L]