Redirect subdomain to CakePHP action
snippet in htaccess

Redirect subdomain to CakePHP action

user6804

RewriteCond %{HTTP_HOST} ^([^.]+)\.myserver\.com$ [NC]
RewriteRule !^m/ http://myserver.com/m/sites/%1%{REQUEST_URI} [NC,L,P]