Put this code in your DOCUMENT_ROOT/.htaccess
file:
RewriteEngine On
RewriteRule ^/?folder(/.*)?$ /$1 [L,NC]
문제
How would I, in apache 2.4.9, add a fake folder to all URLs?
Example:
http://localhost/index.html
changes to
http://localhost/folder/index.html
?
해결책
Put this code in your DOCUMENT_ROOT/.htaccess
file:
RewriteEngine On
RewriteRule ^/?folder(/.*)?$ /$1 [L,NC]