It is required that the url localhost / admin / include the index.php file (echo 'in the admin panel!') In the app / admin folder (app root folder). Pliz tell me how to do it in .htaccess

Does not work:

RewriteEngine On RewriteRule ^admin/$ /admin/index.php [L] 

Gives 500 error. This directive RewriteRule ^.*$ index.php [L] works! I use assembly MAMP

  • Add what you have already installed. And what is displayed. What kind of web server is used (and is something used at all) - xAqweRx
  • corrected information - Vladimir Vasilev
  • And where is the host looking? 'DocumentRoot`? - xAqweRx
  • on app directory - Vladimir Vasilev
  • try to change ^admin/$ to ^admin/.*$ - xAqweRx

0