Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> rewrite, problem, 2 domeny, przekierowanie na inny plik startowy
Łukasz O.
post
Post #1





Grupa: Zarejestrowani
Postów: 191
Pomógł: 5
Dołączył: 13.01.2007

Ostrzeżenie: (0%)
-----


dwie domeny wskazują na ten sam katalog www.test.pl i www.test.com.pl

jak przekierować tylko stronę główną test2.pl na inny plik startowy?

www.test.pl -> index.php
www.test2.pl -> index2.php

www.test.pl/costam = www.test2.pl/costam?

mam coś takiego, ale nie chce za bardzo działać (www.test2.pl ląduje też na pliku index.php)
  1. RewriteEngine On
  2. RewriteRule ^(www\.)?kasety.pl$ index2.php [L]
  3. RewriteRule ^klienci[\,](\d+) index.php [L]
  4. RewriteRule ^(([a-zA-Z0-9_]+)/?)+$ index.php [L]


--------------------
"Don't tell me you want a bridge - show me the canyon you want to cross" Giuseppe Delena
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 14:37