![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 36 Pomógł: 0 Dołączył: 7.10.2008 Ostrzeżenie: (0%) ![]() ![]() |
Dzień dobry,
Mam dwie domeny x.com.pl i y.com.pl. Chciałbym żeby przez przeglądarkę WWW można było wejść tylko na x.com.pl, np. http://www.x.com.pl a domenę y.com.pl zostawić tylko na adres e-mail, np. biuro@y.com.pl. W pliku .htacess mam: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule .* index.html [L] RewriteCond %{HTTP_HOST} ^www.y.com.pl$ [OR] RewriteCond %{HTTP_HOST} ^y.com.pl$ RewriteRule /not_found.html - RewriteRule .* http://www.y.com.pl/not_found.html [L] Problem w tym, że mam pętlę przekierowań. Jak ją usunąć? Spróbowałem więc tak: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule .* index.html [L] RewriteCond %{HTTP_HOST} ^www.y.com.pl$ RewriteCond %{REQUEST_URI} !^not_found.html$ RewriteRule .* http://www.y.com.pl/not_found.html [L] ale to też tworzy pętle, nie wiem dlaczego. |
|
|
![]() ![]() |
![]() |
Aktualny czas: 19.08.2025 - 10:29 |