小编Spe*_*cer的帖子

关闭302重定向并自动重定向

我正在我的本地主机上使用 curl 测试重定向。当我运行此命令时:

$curl "test.test.com/landing/0192"
Run Code Online (Sandbox Code Playgroud)

我得到这个输出:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="http://redirect.redirect.com/landing?xid=0192&amp;tt=192">here</a>.</p>
<hr>
<address>Apache/2.2.17 (Fedora) Server at spencervm.adverplex.com Port 80</address>
</body></html>
Run Code Online (Sandbox Code Playgroud)

现在,如果我跑步,http://redirect.redirect.com/landing?xid=0192&amp;tt=192"我就会到达我想要的目的地。所以基本上我想要做的就是关闭 302 错误并重定向到它应该重定向到的页面。

linux mod-rewrite fedora redirect apache-2.2

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

apache-2.2 ×1

fedora ×1

linux ×1

mod-rewrite ×1

redirect ×1