I have a Laravel project
My domain is domain.com.tw
and the URL will be domain.com.tw/public,
and the page could be showed.
I want to remove the public
in URL,
so I write RewriteRule
in .htaccess
with:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
but it did not work for me I had look at these also, but still failed
Apache Mod Rewrite For Laravel
Laravel 4.2 rewrite URL - remove public
could someone tell me the solution? thanks!!