.htaccess - htaccess and Laravel -
my domain
example.com i want install laravel subfolder
example.com/my_app when pass link example.com/my_app/public - see page "you have arrived", want see page without segment "public".
i want make when use laravel not in subfolder, this:
<ifmodule mod_rewrite.c> rewriteengine on rewriterule ^(.*)$ public/$1 [l] </ifmodule> i edited .htaccass file in base folder (example.com) :
<ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewritecond %{request_uri} ^/my_app rewriterule ^(.*)/$ my_app/public/$2 [l,r=301] </ifmodule> after when pass @ example.com/my_app/ redirects example.com/my_app/public , see page "you have arrived", redirect (r=301) , if delete flag r=301 - see page "whoops, looks went wrong."
i 3 days looking solutions in website, ...
tell me doing wrong.
thank.
the entry point requests laravel application public/index.php.
for further info can go link.
assuming using apache, need configure virtual host need point example.com/my_app laravel/public/index.php. directory.
Comments
Post a Comment