ukrcms/ukrcms/master/blog-pack/.htaccess - Htaccess File

ukrcms/ukrcms/master/blog-pack/.htaccess

AddDefaultCharset utf-8
Options All -ExecCGI -Indexes -Includes +FollowSymLinks
IndexIgnore */*

<IfModule mod_rewrite.c>
  RewriteEngine on

  #disable hidden files and folders (ex .git)
  RewriteCond %{SCRIPT_FILENAME} -d [OR]
  RewriteCond %{SCRIPT_FILENAME} -f
  RewriteRule "(^|/)." - [F]

  # no WWW
  RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
  RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

  # redirect from index.html and index.php
  RewriteCond %{THE_REQUEST} ^[A-Z]{3,}s(.*)/index.(php|html?) [NC]
  RewriteRule ^ /%1 [R=301,L]

  # rewrite all fom folder files for nice urls of images
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} files/(.+)
  RewriteRule files/(.*)[/.](.*).([a-zA-Z]+)$ files/$1.$3 [L]

  RewriteCond %{REQUEST_FILENAME} !-f
  #RewriteCond $1 !^(index.php)  # use in production. Allow only index.php acces and files under files/ folder
  RewriteRule ^(.*)$ index.php/$1 [L]

</IfModule>

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, REQUEST_FILENAME, SCRIPT_FILENAME, THE_REQUEST

Comments

Apache