pedra/QPosts/master/.htaccess - Htaccess File

pedra/QPosts/master/.htaccess

AddDefaultCharset utf-8
AddCharset utf-8 .html .css .js .xml .json .rss .atom
AddType application/x-httpd-php phar
FileETag INode MTime Size
ServerSignature Off

<IfModule dir_module>
    #DirectoryIndex start.phar
</IfModule>

RewriteEngine On

RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
RewriteRule "(^|/)." - [F]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^(.*)$ start.phar/$1 [QSA,L]
RewriteRule ^(.*)$ index.php/$1 [QSA,L]

<IfModule mod_expires.c>
 ExpiresActive  On
 ExpiresDefault "access plus 1 year"
 ExpiresByType  text/html "access plus 1 day"
</IfModule>

On Github License

Files

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

Comments

Apache