Htaccess File

Mapybezbarier/mapybezbarier/master/.htaccess

DEFLATE, HTTP_HOST
# Apache configuration file (see httpd.apache.org/docs/current/mod/quickreference.html)

# disable directory listing
<IfModule mod_autoindex.c>
    Options -Indexes
</IfModule>

# enable cool URL
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    # www to non-www
    RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
    RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

    # XSD schema
    Redirect 301 /XMLSchema /asset/schema/schema.xsd

    # prevents files starting with dot to be viewed by browser
    RewriteRule /.|^. - [F]

    # front controller
    RewriteRule ^.*$ index.php [L]
</IfModule>

# enable gzip compression
<IfModule mod_deflate.c>
    <IfModule mod_filter.c>
        AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/javascript application/json application/xml image/svg+xml
    </IfModule>
</IfModule>
Exit mobile version