tuxxus/fediverse.org/master/.htaccess - Htaccess File

tuxxus/fediverse.org/master/.htaccess

RewriteEngine On

<IfModule mod_gzip.c>
    mod_gzip_on       Yes
    mod_gzip_dechunk  Yes
    mod_gzip_item_include file      .(html?|txt|css|js|php|pl)$
    mod_gzip_item_include handler   ^cgi-script$
    mod_gzip_item_include mime      ^text/.*
    mod_gzip_item_include mime      ^application/x-javascript.*
    mod_gzip_item_exclude mime      ^image/.*
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>

RewriteCond %{HTTP_HOST} ^fediverse.org$
RewriteRule (.*) http://www.fediverse.org/$1 [R=301,L]

#RewriteRule ^([^/]*)/$ /index.php?section=$1 [L]

RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?section=$1 [L]

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST

Comments

Apache