Htaccess File


# Apache configuration file (see

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

# 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]

# 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
Exit mobile version