当有人点击特定子域时,我想显示子目录的内容。http://my.example.us/
应该显示的内容http://example.us/sync
。
编辑:这是我到目前为止所拥有的。它似乎根本不会影响我的 URL。
RewriteCond %{HTTP_HOST} ^(my)\.example\.us$
RewriteRule ^ http://example.us/sync/$1 [L]
当有人点击特定子域时,我想显示子目录的内容。http://my.example.us/
应该显示的内容http://example.us/sync
。
编辑:这是我到目前为止所拥有的。它似乎根本不会影响我的 URL。
RewriteCond %{HTTP_HOST} ^(my)\.example\.us$
RewriteRule ^ http://example.us/sync/$1 [L]