How I can redirect
and other different subdomains respectively to
in Apache? This is need for convenient links shortening of site.com. Thank in advance.
I don't understand it, but it work.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^([\w\d]+)\.osite\.ru$
RewriteRule ^(.*)$ http://so.kr/index.php?url=http://%1.site.ru$1 [NC,L,QSA]