Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> RewriteCond a hosty
matrik
post
Post #1





Grupa: Zarejestrowani
Postów: 115
Pomógł: 2
Dołączył: 23.07.2009

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


Witam

Mam problem z napisaniem różnych regułek odpowiadającym poszczególnym domenom, które wywołują skrypt.
Załóżmy, że mam taki kod:
  1. <IfModule mod_rewrite.c>
  2. RewriteEngine On
  3. Options +FollowSymlinks
  4. RewriteBase /
  5. RewriteCond %{SCRIPT_FILENAME} -f
  6.  
  7.  
  8. RewriteCond %{HTTP_HOST} ^domena1.pl
  9. RewriteRule (.*) index1.php/$1 [L]
  10.  
  11. RewriteCond %{HTTP_HOST} ^domena2.pl
  12. RewriteRule (.*) index2.php/$1 [L]
  13.  
  14. RewriteCond %{HTTP_HOST} ^domena3.pl
  15. RewriteRule (.*) index3.php/$1 [L]
  16.  
  17.  
  18. </IfModule>


Dlaczego regułki nie działają dla tych domen? sad.gif
Go to the top of the page
+Quote Post

Posty w temacie
- matrik   RewriteCond a hosty   27.04.2012, 13:56:42


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: 21.08.2025 - 05:45