0

我有这个 htaccess 文件:

RewriteEngine On
RewriteRule ^([a-zA-Z0-9]+:/.)$ result.php?u=$1
RewriteRule ^([a-zA-Z0-9]+:/.)/$ result.php?u=$1

我想要做的是,将 http://example.com/http://google.com 重写http://example.com/result.php?u=http://google.com我只需获得“在此服务器上找不到请求的 URL”

4

1 回答 1

1

试试这个:

RewriteEngine On
RewriteRule ^([a-zA-Z0-9:/\.]+)$ http://example.com/result.php?u=$1
于 2012-05-23T20:56:02.943 回答