PHP Classes

File: public/.htaccess

Recommend this page to a friend!
  Classes of Ujah Chigozie peter   Luminova Framework   public/.htaccess   Download  
File: public/.htaccess
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Luminova Framework
PHP Luminova framework: simple, powerful MVC/HMVC.
Author: By
Last change:
Date: 3 months ago
Size: 1,307 bytes
 

Contents

Class file image Download
# Disable directory listing for security reasons <IfModule mod_autoindex.c> Options -Indexes </IfModule> <IfModule mod_rewrite.c> RewriteEngine On DirectoryIndex index.php # Handle SSL redirection RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # Handle authorization header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # Remove trailing slashes, except for directories RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ RewriteRule ^ %1 [L,R=301] # Don't redirect /assets/ and /.well-known/ RewriteCond %{REQUEST_URI} !^/(assets|\.well-known)/ RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/$ /$1 [L,R=301] # Send all incoming requests to the front controller RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule> # Enable gzip compression for text files <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html text/plain text/css application/javascript application/json text/xml application/xml application/rss+xml image/svg+xml </IfModule> # Disabled server signature footer line information ServerSignature Off