I have this URL in Ubuntu Linux Server:
http://mywebsite.xxx/getapp/1?ref=134&reseller=my_name&campaign=school_holiday
If I used in my xampp localhost (Windows 10) like:
http://localhost:8000/getapp/1?ref=134&reseller=my_name&campaign=school_holiday
Then everything able to keep track with all query strings captured. But in the Ubuntu Linux server with the same codes none of all the query strings were captured.
How to let the URL able to keep track in server same as in local?What should I do?
Thanks.
Sample codes I've tried.
public function MyLogLib(Request $request)
{
$data_insert = new LogLib();
$data_insert->ref = $request->input('ref');
$data_insert->reseller = $request->input('reseller');
$data_insert->campaign = $request->input('campaign');
$data_insert->save();
}
Rewrite rules:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A 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]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>