|
楼主 |
发表于 2008-3-10 13:56:51
|
显示全部楼层
Post by sofire;1824709
很好找问题,分两步:
1.有没有跳转到 work.new.com这个域名?
看Rewrite的Log日志。
用Httpwatch等软件就能看到。
2.http://work.new.com/index.php?action=$1&$2=$3
访问这个正常不?
我写到虚拟主机里。
我错在那了?
<VirtualHost *:80>
ServerName work.new.com
DocumentRoot /usr/local/web/new/
DirectoryIndex index.php
RewriteEngine on
#RewriteRule /work/([^/]+)/([^/]+)/([^/]+) /work/index.php?action=$1&$2=$3 [L,R]
#RewriteRule /work/(\w+)$ /work/index.php?action=$1&$2=$3 [L,R]
RewriteRule /work/(.?+)$ /work/index.php?action=$1&$2=$3 [L,R]
<Directory "/usr/local/web/new/">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
work 目录在/usr/local/web/new/低下。
测试没有通过。错在那了? |
|