At the root of the site there is htaccess

Options -Indexes DirectoryIndex index.php RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.*)$ index.php?page=$1 [L,QSA] 

How to write the same current for admin?) Folder admin

  • something tells me to register a directory (folder) - Gedweb

1 answer 1

Put in front of this rule another one that will be the last (key [L] ):

 RewriteEngine On RewriteCond %{REQUEST_URI} ^/?admin/(.*)$ RewriteRule ^ admin/index.php?%1 [L] 
  • Internal Server Error - vinnie
  • @vinnie Corrected the answer - ReinRaus
  • does not work ((( - vinnie