1
0
Fork 0
mirror of https://github.com/fmap/muflax65ngodyewp.onion synced 2024-06-02 06:46:50 +02:00
muflax65ngodyewp.onion/content/htaccess.erb
2012-06-23 20:20:36 +02:00

29 lines
665 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
# redirect old wordpress links
<% @site.slug_items.each do |item| %>RewriteRule ^<%= item[:slug].chop %> <%= item.identifier%> [R=301]
<% end %>
# redirect sites if they moved
<% @site.moved_pages.each do |from, to| %>RewriteRule ^<%= from %> <%= to %> [R=301]
<% end %>
# serve gzipped files if available
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME} !\.gz$
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.*)$ $1.gz [L]