Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [htacces] Problem z sub domenami
WebSee
post
Post #1





Grupa: Zarejestrowani
Postów: 50
Pomógł: 3
Dołączył: 6.12.2009

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


Witam,
mam problem z sub domenami. Skrypt, który je obsługuje:
  1. RewriteCond %{HTTP_HOST} ^([^.]+)\.ewise\.pl [NC]
  2. RewriteRule ^(.*) <a href="http://ewise.pl/profil/%1" target="_blank">http://ewise.pl/profil/%1</a> [QSA]


Lecz gdy wejdę, np na websee.ewise.pl, zostaje przekierowany na ewise.pl/profil/websee
Można tego jakoś uniknąć, by po wpisaniu w pasku adresu zostawała cały czas ta sub domena?

Pozdrawiam
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
krzysztof_kf
post
Post #2





Grupa: Zarejestrowani
Postów: 1 135
Pomógł: 158
Dołączył: 19.03.2009
Skąd: Toruń

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


  1. RewriteEngine On
  2. Options +FollowSymlinks
  3. RewriteBase /
  4. RewriteCond %{HTTP_HOST} subdomena.domena.com
  5. RewriteCond %{REQUEST_URI} !subdomena/
  6. RewriteRule ^(.*)$ subdomena/$1 [L]
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: 14.10.2025 - 03:18