I'm using laravel 5.2 and I wrote a route like this:
Route::group(['middleware' => 'web'], function () {
Route::get('/country/{locationName}', ['as' => 'country', 'uses' => 'HomeController@getCountry']);
});
Then when I open my page.com/country/argentina I get the locationName from the url without problem. But if I press f5 several times It happens that my variable $locationName sometimes gets a "favicon.ico" value instead of "argentina".
Well, I don't think it's a laravel problem. It is really a simple code. Could it be a problem in the .htaccess or the apache config?
Btw, this is my .htaccess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# SSL From cloudflare
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>