dousi2553 2015-11-23 13:37
浏览 10
已采纳

PHP和.htaccess不允许$ _GET

I have a .htaccess document in the root of my webserver with the following code:

Options +FollowSymLinks
RewriteEngine On

RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f

RewriteRule ^.*$ ./index.php

Everything works perfect I can easily explode the link in PHP using the follinw code:

$params = explode('/', $_SERVER['REQUEST_URI']);
var_dump($params);

Now I want to do a $_GET['name'] request but this isn't working, it is just pasting it in the params array so I am not available to get the code using $_GET.

Do you know how to fix this? The problem is the .htaccess file I suppose.

  • 写回答

2条回答

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 使用DWY100k数据集对UEA进行测试,出现报错:IndexError: index 125000 is out of bounds for axis 0 with size 95500
      • ¥15 前端vue实现根据图片url生成pdf文件
      • ¥15 RfidReader资源Q个
      • ¥20 user-agent是否是唯一的,有没有可能相同
      • ¥15 关于#开会#的问题,如何解决?(语言-c++)
      • ¥15 关于#二十四点问题#的问题
      • ¥15 运行kitex的demon出错(求大家解决)
      • ¥15 开发一个类似 typora 这样的软件需要多少钱?
      • ¥15 clearcase7.0安装包
      • ¥15 断点回归模型月度核密度检验不连续