mod-rewrite subdomain to path in primary domain
问题 I have content from a different server on a subdomain that I would like to use as a subdirectory. Everything from sub.domain.com should be accessible to domain.com/sub I would like sub folders to work as well ex: sub.domain.com/about should be domain.com/sub/about Here's my current .htaccess contents <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^(sorry).* - [NC,L] RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/$1 [L] </IfModule> Any help appreciated. Thanks! 回答1: Enable