Htaccess File

skat-delayed/projectTemplate/master/res/.htaccess

DEFLATE, ENV, HTTPS, REQUEST_FILENAME, REQUEST_URI, SERVER_NAME
<IfModule mod_fcgid.c>
   AddHandler fcgid-script .fcgi
   <Files ~ (.fcgi)>
       SetHandler fcgid-script
       Options +FollowSymLinks +ExecCGI
   </Files>
</IfModule>
#enable gzip
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/javascript application/x-javascript 

# http://httpd.apache.org/docs/2.2/rewrite/

<IfModule mod_rewrite.c>
   Options +FollowSymlinks
   RewriteEngine On
   RewriteBase /
# Redirect all http connections to https
   RewriteCond %{HTTPS} !=on
   RewriteCond %{ENV:HTTPS} !=on
   RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
# Redirect index to fcgi script
   RewriteRule (^$|^/$) web.fcgi [L]
# rewrite url to hide web.fcgi
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule ^(.*)$ web.fcgi/$1 [QSA,L]
</IfModule>
Exit mobile version