Htaccess File

cangsalak/Yii2-CMS/master/backend/web/.htaccess

REQUEST_FILENAME
<IfModule mod_autoindex.c>
  Options -Indexes
</IfModule>

<IfModule mod_rewrite.c>
  RewriteEngine on

  # if a directory or a file exists, use it directly
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  
  # otherwise forward it to index.php
  RewriteRule . index.php  
  
</IfModule>

<IfModule php5_module>
  php_value session.cookie_httponly true
</IfModule>
Exit mobile version