how substitute content from "work1/public" subdirectories when you enter aaa.aaa/work1 ?
I tested
RewriteEngine on
RewriteRule (.*) /work1/public/
But it only works when you are asking for something
if nothing is entered
rule does not work :-(
can anyone help me ?
Thank you very much
aaa.aaa === localhost
Place this code in your /work1/.htaccess
file:
RewriteEngine On
RewriteBase /work1/
RewriteRule ^((?!public/).*)$ public/$1 [L,NC]