【发布时间】:2010-07-04 05:50:02
【问题描述】:
我最近发现了 mod rewrite,我想知道这是否可能 重写包含出站 url 的变量。
到目前为止,它根本不起作用。我认为这是由于变量中的特殊字符引起的,我不知道如何解决这个问题。
到目前为止我的 .htaccess 代码:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^url/(\w+)/?$ link.php?url=$1 [L]
我想重写:
http://www.example-site.com/url/http://www.affiliate-site.com/dir/index.php?page=home
收件人:
http://www.example-site.com/link.php?url=http://www.affiliate-site.com/dir/index.php?page=home
任何帮助将不胜感激。
提前致谢。
【问题讨论】:
标签: .htaccess mod-rewrite