Home > Backend Development > PHP Tutorial > php中怎么获取404页面的之前的那个url

php中怎么获取404页面的之前的那个url

WBOY
Release: 2016-06-13 13:44:52
Original
748 people have browsed it

php中如何获取404页面的之前的那个url
php中如何获取404页面的之前的那个url啊

------解决方案--------------------

探讨

引用:

$_SERVER['HTTP_REFERER']:
“HTTP_REFERER”
链接到当前页面的前一页面的 URL 地址。不是所有的用户代理(浏览器)都会设置这个变量,而且有的还可以手工修改 HTTP_REFERER。因此,这个变量不总是真实正确的。

想的和楼上一样,目前用的挺正常

这个我用过了,不管用,获取不到转向404之前……

------解决方案--------------------
RewriteEngine On
RewriteBase /

RewriteRule ^sell_list.php?fid=\d+$ /sell [NC]

试试呢
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template