0
我在我的wordpress網站上創建了一個下載頁面。 我想通過類似http://www.mypersonaldomain.com/download?url=http://link.to/the.pdf
如何在WordPress中通過url參數重定向
這樣的網址我想等待3秒左右,感謝他們的下載。
我已經嘗試了一些PHP和元標籤,似乎在wordpress中都不能很好地工作。
<meta http-equiv="refresh" content="3; URL=<%out.print(request.getParameter("url"))%>">
,並使用PHP插入插件
[insert_php]
$url= $_GET['url'];
header("refresh:3;url=$url");
[/insert_php]
謝謝,我覺得wp_redirect部分將是有用的,但我在剝離interseted的URL的一部分將是「HTTP:/ /link.to/the.pdf」 – Brian