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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -