现在这是处理请求的方式:
mydomain.com - > /vhost/mydomain.com /
mydomain.com/forums - > /vhost/mydomain.com/forums /
这就是我在httpd.conf文件中的内容:
RewriteCond %{HTTP_HOST} mydomain.com$ [NC]
RewriteCond %{REQUEST_URI} ^/forums/$
RewriteRule ^(.*)$ /vhosts/forum.mydomain.com/$1 [L]
RewriteCond %{HTTP_HOST} mydomain.com$ [NC]
RewriteCond %{REQUEST_URI} !^/forums/$
RewriteRule ^(.*)$ /vhosts/mydomain.com/$1 [L]
如何将/ forums子目录指向我服务器上的此路径? mydomain.com/forums - > /vhost/forums.mydomain.com /
由于