.htaccess mod_rewrite not working in subdirectory
snippet in htaccess

.htaccess mod_rewrite not working in subdirectory

user5882

DirectoryIndex main.php

RewriteEngine on
RewriteBase /public/

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . main.php [L]