sonitgregorio/tnhs/master/.htaccess - Htaccess File

sonitgregorio/tnhs/master/.htaccess

#<IfModule mod_expires.c>
#ExpiresActive On
#ExpiresByType image/png "access plus 2 weeks"
#ExpiresByType image/gif "access plus 2 weeks"
#ExpiresByType image/jpeg "access plus 2 weeks"
#ExpiresByType image/jpg "access plus 2 weeks"
#ExpiresByType image/x-icon "access plus 2 weeks"
#</IfModule>
php_value upload_max_filesize 30M
php_value post_max_size 30M
php_value memory_limit 128M
<IfModule mod_rewrite.c>
  RewriteEngine on

  # cut the url if the index.php is exists make it more cleaner url
  # e.g. lcis.dev.com/index.php => lcis.dev.com

  RewriteCond %{ENV:REDIRECT_STATUS} ^$
  RewriteRule ^index.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]

  RewriteCond $1 !^(index.php|assets)
  RewriteRule ^(.*)$ /index.php/$1 [L]

</IfModule>

On Github License

Files

Download PDF of Htaccess file
ENV, REDIRECT_STATUS

Comments

Apache