【发布时间】:2011-08-18 13:26:01
【问题描述】:
嘿,我是 htaccess 的总 niewbie。 在我的网站 (mysite.com) 上,我获得了一个链接,该链接将变量定向并发送到安全网站 (othersite.com/somepage.php?urlink='www.mysite.com') 上的页面。
如何编辑我的 htaccess 文件以将 othersite.com/somepage.php?urlink='www.mysite.com' 重写为 urlink 具有的任何值。
我的 htaccess 中有这个
Options +FollowSymlinks<br>
Options All -Indexes<br>
Options Indexes Includes FollowSymLinks ExecCGI
RewriteEngine on
RewriteRule ^&urlink=(.*) http://$1 [P]
【问题讨论】: