S
S
Scheuble2015-04-13 16:11:06
htaccess
Scheuble, 2015-04-13 16:11:06

Forwarding from different domains to one, can it be simplified?

Greetings to all those who are not indifferent))

There is a hosting to which several different domains are attached

  • skinny mice.ru
  • tight mice.ru
  • excellent mice.ru

The task is to have URL variations like
- (http or https) thinmice.ru/tralala and www .thinmice.ru/tralala
or
- (http or https) tightmice.ru/tralala and www .densemice.ru/tralala
redirected to https:// excellent mice.ru/tralala

I know how to do it in the "long" way. Then I just thought, why bother, and did this:
RewriteCond %{HTTP_HOST} ^.*\.ру$ [NC]
RewriteRule ^(.*)$ https://отличныемышки.ру/$1 [R=301,L]

everything is working.

Question: Is it possible? Doesn't this pose some kind of security risk or other problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
ShamblerR, 2015-04-13
@ShamblerR

no all the rules. but in the variant you proposed, GET will not be transmitted

N
noys, 2015-04-15
@noys

Don't bother with DNS, you don't have to dance with hosting en.wikipedia.org/wiki/CNAME_record

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question