隐藏我网站中的网址

时间:2015-09-15 01:38:09

标签: php .htaccess

需要隐藏此网址

http://localhost:8080/Gamesite/details.php?id=1

到此网址

http://localhost:8080/Gamesite/details.php

已经在.htaccess中有404重定向,如下所示:

ErrorDocument 404 http://localhost:8080/Gamesite/core/404.html

但只有在我更改url

中(?)之前的任何内容时才会重定向

我得去工作

1 个答案:

答案 0 :(得分:1)

隐藏参数我们基本上使用POST方法隐藏,它会使用requestHeader将数据发送到您的servlet,如果您使用表单提交数据使用属性method = "POST"