void-sector/custom-mvc-pet-project/master/public_html/.htaccess - Htaccess File

void-sector/custom-mvc-pet-project/master/public_html/.htaccess

php_value error_reporting -1
php_flag display_errors on
php_flag register_globals off
php_flag session.use_trans_sid off
#php_flag short_open_tag off
php_flag magic_quotes_gpc off
php_flag zlib.output_compression on
php_value zlib.output_compression_level 6

SetEnv APPLICATION_ENV production
RewriteEngine On
RewriteBase /

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

RewriteCond %{REQUEST_FILENAME} -f
#RewriteCond %{REQUEST_FILENAME} -s [OR]
#RewriteCond %{REQUEST_FILENAME} -l [OR]
#RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

On Github License

Files

Download PDF of Htaccess file
ENV, HTTP_HOST, HTTPS, REQUEST_FILENAME

Comments

Apache