-
Przekierowanie
Witam. Mam przekierowane adres forum w taki sposób:
stworzony plik .htaccess a w nim:
Kod:
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^unlimitedfile.pl$
RewriteRule ^(.*)$ http://www.unlimitedfile.pl/$1 [R=permanent,L]
I jak dodać do tego aby z adresu http://www.unlimitedfile.pl/ przekierowywało na http://www.unlimitedfile.pl/portal.php
-
pod:
Kod:
RewriteRule ^(.*)$ http://www.unlimitedfile.pl/$1 [R=permanent,L]
Dodaj
Kod:
RewriteCond %{HTTP_HOST} ^http://www.unlimitedfile.pl$
RewriteRule ^(.*)$ http://www.unlimitedfile.pl/portal.php$1 [R=permanent,L]
-
Nie działa. Znaczy nie przekierowuje na /portal.php
-
Spróbuj to dodać zamiast tego co wyżej napisałem:
Kod:
RewriteCond %{HTTP_HOST} ^www.unlimitedfile.pl$
RewriteRule ^(.*)$ http://www.unlimitedfile.pl/portal.php$1 [R=permanent,L]