Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [apache] RewriteCond cos nie dziala
cornholio666
post
Post #1





Grupa: Zarejestrowani
Postów: 472
Pomógł: 8
Dołączył: 14.03.2004
Skąd: Rzeszów

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


Mam taki plik .htaccess:

  1. RewriteEngine On
  2.  
  3.  
  4. RewriteCond %{HTTP_HOST} ^(www\.)?(.*).domena.home.pl$
  5. RewriteRule ^(.*)$ index.php?subname=%2
  6.  
  7. RewriteCond %{HTTP_HOST} ^(www\.)?(.*).domena.home.pl$
  8. RewriteRule ^(.*)$ index.php?subname2=%2


Jak jest jedno

  1. RewriteCond %{HTTP_HOST} ^(www\.)?(.*).domena.home.pl$
  2. RewriteRule ^(.*)$ index.php?subname=%2


to działa dobrze a jak daje dwa to pisze ze nieprawidłowe przekierowanie.
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 26.09.2025 - 12:08