php - Automatic Redirect URL in Laravel 5.2 -
i have problem url in laravel 5.2
if type url directly browser, works fine. however, if hyperlink url, reduces url , returns link.
for example:
firstsite.com/juliet/tasks become firstsite.com/tasks when click on hyperlink.
here .htaccess file under laravel root folder (not public folder):
<ifmodule mod_rewrite.c> rewriteengine on # redirect trailing slashes if not folder... rewritecond %{request_filename} !-d rewriterule ^(.*)/$ /$1 [l,r=301] # handle front controller... rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewriterule ^ index.php [l] </ifmodule>
please help!
it works when try absolute url:
<a href="http://firstsite.com/juliet/tasks"><div class="btn btn-warning">back</div></a>
this 1 doesn't work although when hover mouse button, show correct hyperlink firstsite.com/juliet/tasks:
<a href="/juliet/tasks"><div class="btn btn-warning">back</div></a>
Comments
Post a Comment