Htaccess File

it9xpro/ci3/master/.htaccess

REQUEST_FILENAME, SCRIPT_FILENAME
Options +FollowSymLinks

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /ci3/

  <Files .*>
    Order Deny,Allow
    Deny From All
  </Files>

  # Allow asset folders through
  RewriteRule ^(fuel/modules/(.+)?/assets/(.+)) - [L]

  # Protect application and system files from being viewed
  RewriteRule ^(fuel/install/.+|fuel/crons/.+|fuel/data_backup/.+|fuel/codeigniter/.+|fuel/modules/.+|fuel/application/.+) - [F,L]

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d

  RewriteRule .* index.php/$0 [L]
  
  # Prevents access to dot files (.git, .htaccess) - security.
  RewriteCond %{SCRIPT_FILENAME} -d
  RewriteCond %{SCRIPT_FILENAME} -f
  RewriteRule "(^|/)." - [F]
  
</IfModule>
Options -Indexes
Exit mobile version