duancaozen6066 2017-02-15 02:53
浏览 84

与Xampp Windows本地服务器相比,Ubuntu Linux服务器中的完整URL不匹配

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>
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 DIFY API Endpoint 问题。
    • ¥20 sub地址DHCP问题
    • ¥15 delta降尺度计算的一些细节,有偿
    • ¥15 Arduino红外遥控代码有问题
    • ¥15 数值计算离散正交多项式
    • ¥30 数值计算均差系数编程
    • ¥15 redis-full-check比较 两个集群的数据出错
    • ¥15 Matlab编程问题
    • ¥15 训练的多模态特征融合模型准确度很低怎么办
    • ¥15 kylin启动报错log4j类冲突