Htaccess File

chitanka/chitanka/master/web/.htaccess

REQUEST_FILENAME, REQUEST_URI
<IfModule mod_rewrite.c>
  RewriteEngine On

  # remove trailing slash
  #RewriteCond %{REQUEST_FILENAME} !-d
  #RewriteCond %{REQUEST_URI} ^(.*)/$
  #RewriteRule ^(.*)/$ /$1 [R=301,L]

  RewriteRule ^index.php/(.+) /$1 [R=301,L]

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
Exit mobile version