blog.serverclub.ru
Блог компании ServerClub

Редирект с поддомена apache mod_rewrite - новости - ServerСlub

25 ноября 2014 г. Просмотров: 2169 RSS 6 , , ,

Вновь небольшая заметка.

Одному из наших клиентов было необходимо произвести перенаправление со всех поддоменов на домен, при чем после / поставить имя поддомена.

Предыдущее зубодробительное предложение расшифровывается так:

кто-то вбивает в строке своего браузера адрес poddomen.domain.biz, а нам необходимо превратить его в domain.biz/poddomen

Делается это путем добавления в .htaccess(либо в конфиг виртуалхоста) следующих строк:

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.* [NC]
RewriteCond %{HTTP_HOST} ^([^\.]+)\.domain\.biz
RewriteRule ^(.*) http://domain.biz/%1 [L]
twitter.com facebook.com vkontakte.ru odnoklassniki.ru mail.ru ya.ru pikabu.ru blogger.com liveinternet.ru livejournal.ru google.com yandex.ru
Комментариев: 6
  1. http://tjene-penger.ovh Hvordan tjene penger fort

  2. http://tjene-penger.ovh Tjene ekstra penger

  3. forti appezzamenti di perdita di peso http://cigopweight.space/2a4xc37pwz-477v14te.html 7 napos diéta Maggi http://cigopweight.space/x69-22i1rk44.html Andrew Bobrowski Gewicht des Kopfes kostenlosen Download http://cigopweight.space/1s7169oysvqxdtp.html esercizi efficaci per perdere peso in addome e fianchi http://cigopweight.space/u99je92-ebwkabwie8.html malattie della tiroide in sovrappeso http://cigopweight.space/j24-u11-wh-r8y7i614.html megfelelő táplálkozás fogyás videó receptek http://cigopweight.space/43j22f3vn49.html gaulteria rendes fogyókúra ár http://cigopweight.space/5dh51oo52u-j8p7k7i6.html dimagrante crema di armonia fermezza cellulite recensioni Eveline http://cigopweight.space/z3fc75xwn-4qe22.html leghatékonyabb vízhajtó fogyás http://cigopweight.space/2q1-484a31y98q3kg581j.html fogyni 5 kg testmozgás http://cigopweight.space/2m-p89u16716w3.html Wir essen bei Fettverbrennung http://cigopweight.space/rlulvroi784-6iy9.html lehetséges, hogy lefogy a vodka http://cigopweight.space/37943-792z161.html come fare un bar per la perdita di peso http://cigopweight.space/8tv9899p43iq.html fehérje diéta edzés nélkül http://cigopweight.space/o4c-w3obn12r.html quanti punti per ottenere sottile http://cigopweight.space/6lir4gsf47.html collant con pantaloncini dimagranti HOTEX http://cigopweight.space/cm-a3zsibncw8mxqf-9h.html éheztetés fogyás japán http://cigopweight.space/cdu3t516hqv956n2z2z3.html esercizio fisico per perdere peso rapidamente rimuovere il grasso della pancia http://cigopweight.space/3m4-b3i-uh3g366.html Szórakozás fogyókúra http://cigopweight.space/8214b-6vi4pf119c2h.html diéta az új évre maraton http://cigopweight.space/7x2e5-7e8h7cipta.html mi az oka a fogyás fórum http://cigopweight.space/326-4-z17cqqkal.html Szabályzat zsírégető zöld http://cigopweight.space/ouhc44jcpms9o-y.html che efficace per perdere peso in esecuzione o in bicicletta http://cigopweight.space/wc991vs54-14jykwtlr.html welche Klassen müssen Sie Gewicht verlieren zu tun http://cigopweight.space/1-62-l1q3a-93kn4lva7.html hashajtó fogyás előnyei és hátrányai http://cigopweight.space/32v8c578vc5u9ao9.html Sitzungen Kashpirovsky Video Gewichtsverlust Heilung http://cigopweight.space/p4-3o-tnrte577wjg.html Töltés ingyen fogyás videó http://cigopweight.space/gk-c9v5fq436h8n-js6.html wie man Gewicht ohne größere Einschränkungen zu verlieren http://cigopweight.space/e61-6771ds2.html diéta, hogy lefogy a lányok részt az edzőteremben http://cigopweight.space/r9w3d1m52fmen4-j9.html hatékony sor gyakorlatok fogyás otthoni videó http://cigopweight.space/wtz3hy386r88qf.html extrem schnellen Gewichtsverlust http://cigopweight.space/54tv1-8wd61l.html Lo shopping online per la perdita di peso http://cigopweight.space/e5-u3g2xtb2bgs2hqx73.html programma di perdita di peso con Elena Malysheva http://cigopweight.space/3et79gq3ye535rj8g7w.html fogyni egy hét gyümölcs http://cigopweight.space/8pu21r883-8g7867.html menü a hét diéta Kim Protasov http://cigopweight.space/19ihv-2-s6-d22jxr-13r5.html Ich glaube nicht, und nicht, nachdem ich planen ein paar Kilo zu verlieren http://cigopweight.space/99nn7d42163e-84m-4a.html programma di perdita di peso per una settimana a casa http://cigopweight.space/8h2318rp94c-95892w4j2.html Übung, Gewicht zu verlieren auf den Seiten der Video-Männer http://cigopweight.space/7g11-v4p6-3359-4fsowib.html Übergewicht mit Hilfe der Kleidung verstecken http://cigopweight.space/92ci1hv295t41.html Kräuter für die Gewichtsabnahme harntreibende Wirkung http://cigopweight.space/242d93x7tb-1kb75-cj1.html fogyókúra gomba http://cigopweight.space/ockwloj774-mf.html testmozgás a fogyás video online nézni ingyen http://cigopweight.space/33k57cxb883tpv5l3u2.html E 'possibile perdere peso con lenticchie http://cigopweight.space/7-y-6-q7o671b3i4195.html wie man Gewicht verlieren, ohne Schmerzen und Kosten zu lesen http://cigopweight.space/5q8q8439-77-74.html hány almát kell enni naponta, hogy lefogy http://cigopweight.space/7y68wrhi2hrr.html effektive Gewichtsabnahme in den Hüften http://cigopweight.space/4fhb-ny2o3ha7-jrfu98-qz.html terhesség hétről 34 étrend http://cigopweight.space/96e79-1693q7c8.html Berechnung von Kalorien pro Tag für die Gewichtsabnahme auf die Proteine ​​Fette und Kohlenhydrate http://cigopweight.space/rl26k26j9c24-9.html cifra detraibile correzione dello studio http://cigopweight.space/r57fuoi2-8cz-iesu111o1.html tea diéta 5 napig http://cigopweight.space/s62fao246d.html Herbalife Fogyás rendszer http://cigopweight.space/6k2ic6e189szu4f-k.html 12, wie man Gewicht in einer Woche zu verlieren http://cigopweight.space/5jy94rv73-115-qv4h27.html Slimming ghiaccio come http://cigopweight.space/up79m-ew58c1.html Gewichtsverlust Kryotherapie mit http://cigopweight.space/8ra73da5gxi.html süße Rezepte für Gewichtsverlust Mahlzeiten http://cigopweight.space/7e11v-k978i-d8uo3.html Citromlé fogyás http://cigopweight.space/5om45j5p78z6vh36.html fűszer fahéj fogyás http://cigopweight.space/819e3-92f96oz69w576p.html Egy sor gyakorlatok a férfiak fogyni otthon minden nap http://cigopweight.space/83-g4215537y.html Pilates abnehmen Spin http://cigopweight.space/q3l4-ht94t3.html Mittelmeer-Diät für 2 Wochen http://cigopweight.space/k4bi85-cl3yh-91.html Dzhillian Maykls fogyni 30 nap 3. rész http://cigopweight.space/fa633469y7urv9q6o4.html A padló Densa lehet fogyni http://cigopweight.space/3f5-66mnx-y52z5p37.html receptek diétás ételek fogyás az otthoni videó környezet http://cigopweight.space/b9c-t9kc3j24e.html Crema di dieta zuppa di cavolfiore http://cigopweight.space/lb7ln95534-2.html im letzten Monat hat Thyroxin verloren auf http://cigopweight.space/ubdtjbms1x5mze.html ható diéta 4 napig http://cigopweight.space/447n176whs483b.html folt karcsúsító a has és a derék http://cigopweight.space/7i3u3d4i1lc3.html 4 Tage auf eine Diät http://cigopweight.space/lu5895a-6ck7hnn19hy-43.html yoga per la perdita di peso http://cigopweight.space/hl96-2f-281m55-8yi5s7tu.html dieta di mangiare ogni giorno è diverso

  4. topuy15s9z

    payday loan interest rates

    online payday loans no credit check

    <a href="http://paydayloans2017.com"> payday loans direct lender</a>

    [url=http://paydayloans2017.com]payday loans near me[/url]

    payday loan near me

  5. find viagra edinburgh pages search

    [url=http://viagraxrm.org/]Jasonlax[/url]

    generic viagra

    generic viagra veega caverta

  6. watermelon viagra effects

    [url=http://viagraxrm.org/]viagra online[/url]

    viagra

    viagra sales on line

Оставьте комментарий!

grin LOL cheese smile wink smirk rolleyes confused surprised big surprise tongue laugh tongue rolleye tongue wink raspberry blank stare long face ohh grrr gulp oh oh downer red face sick shut eye hmmm mad angry zipper kiss shock cool smile cool smirk cool grin cool hmm cool mad cool cheese vampire snake excaim question

Имя и сайт используются только при регистрации