LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 654|回复: 2

apache2.0.50 Rewrite 设置问题

[复制链接]
发表于 2004-7-28 15:08:56 | 显示全部楼层 |阅读模式
把/blog.php?uid=4  映射成/my/4  我的RewriteRule
应该怎么设置?  这个站点是基于端口的虚拟主机 端口 89
 楼主| 发表于 2004-7-28 16:32:17 | 显示全部楼层
哪位老大能帮我看看啊
 楼主| 发表于 2004-7-29 14:54:35 | 显示全部楼层
<VirtualHost 192.168.0.3:81>
ServerAdmin webmaster@×××.com
DocumentRoot /home/www/blog.×××.com
ServerName blog.×××.com
rewriteengine on
RewriteRule /my/(\d+) /blog\.php\?id=$1
</VirtualHost>

这样对吗 怎么就不起作用那?
哪位大侠帮忙看看啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表