seventh
seventh

Reputation: 3106

Complex redirect with Apache

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.

Upvotes: 0

Views: 45

Answers (1)

seventh
seventh

Reputation: 3106

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]

Upvotes: 0

Related Questions