http://localhost/prace1/publichttp://localhost/prace2/publichttp://localhost/prace3/public
http://localhost/prace1http://localhost/prace2http://localhost/prace3
RewriteEngine onRewriteCond %{REQUEST_URI} !^/prace1/RewriteRule ^prace1/(.*) /prace1/public/$1 [L]RewriteCond %{REQUEST_URI} !^/prace2/RewriteRule ^prace2/(.*) /prace2/public/$1 [L]RewriteCond %{REQUEST_URI} !^/prace2/RewriteRule ^prace2/(.*) /prace2/public/$1 [L]
RewriteRule ^/?(prace[0-9])$ /$1/public [L,E=DONE:true]
Kód: [Vybrat]RewriteEngine onRewriteCond %{REQUEST_URI} !^/prace1/RewriteRule ^prace1/(.*) /prace1/public/$1 [L]
RewriteEngine onRewriteCond %{REQUEST_URI} !^/prace1/RewriteRule ^prace1/(.*) /prace1/public/$1 [L]
RewriteEngine onRewriteCond %{REQUEST_URI} !^/(prace[0-9])/public/RewriteRule ^(prace[0-9])/(.*)$ /$1/public/$2 [L]
RewriteEngine onRewriteRule ^(prace[0-9])/(?!public/)(.*)$ /$1/public/$2 [L]
http://localhost/prace1/index.php