中国网管论坛's Archiver

zhanglei95271 发表于 2007-12-17 15:33

关于apache 重写

我想实现 test.abc.com  转为 [url=http://www.abc.com/index.php?uid_1.html]www.abc.com/index.php?uid_1.html[/url]
以下是我的配置文件,已经测试成功。
我是想 将这样的一个关系保存到 一个 txt 中。我改怎么做
RewriteEngine on
RewriteCond %{HTTP_HOST} ^test\.abc\.com$
RewriteRule ^/$ [url=http://www/.abc/.com/index.php?uid_1.html]http://www\.abc\.com/index.php?uid_1.html[/url] [R]
RewriteCond %{HTTP_HOST} ^test2\.abc\.com$
RewriteRule ^/$ [url=http://www/.abc/.com/index.php?uid_2.html]http://www\.abc\.com/index.php?uid_2.html[/url] [R]
RewriteCond %{HTTP_HOST} ^test3\.abc\.com$
RewriteRule ^/$ [url=http://www/.abc/.com/index.php?uid_3.html]http://www\.abc\.com/index.php?uid_3.html[/url] [R]

大侠们,帮我下啊!

[[i] 本帖最后由 zhanglei95271 于 2007-12-17 16:31 编辑 [/i]]

zhanglei95271 发表于 2007-12-19 14:42

求助啊!怎么没人回答吗?版主!大哥,神仙!

zhanglei95271 发表于 2008-1-16 15:18

这么久了没有回答吗?

一城山色 发表于 2008-1-17 03:33

人气太低了。

zhanglei95271 发表于 2008-1-28 18:30

希望好心的大哥,大姐帮下忙!

页: [1]

Powered by Discuz! Archiver 6.1.0  © 1999-2008 bbs.bitsCN.com