Okay, I have done a fair amount of searching but still can\'t find something specific enough to handle my problem.
Right now I have a DNS record that redirects all o
In my case I need rule like foo.bar.com > bar.com/page/foo and I found in apache documentation this:
foo.bar.com
bar.com/page/foo
RewriteCond %{HTTP_HOST} ^(.+)\.bar\.com$ [NC] RewriteCond %{HTTP_HOST} !www.bar.com$ [NC] RewriteRule ^(.*)$ http://bar.com/page/%1/$1 [L,R=301]