![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 19 Pomógł: 0 Dołączył: 20.10.2016 Ostrzeżenie: (0%) ![]() ![]() |
Witam, Chcę przekierować 301 w htaccess stare adresy podstron na nowe niestety cały czas otrzymuje komunikat ERR_TOO_MANY_REDIRECTS. Może ktoś wie jak temu zaradzić. Poniżej plik htaccesss
Wspomne tylko że 301 z domena/index.php na domena działa. Tak samo z www na bez www. Chodzi o contact.php na kontakt.html itd Options All -Indexes Options FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_URI} ^\/contact.php$ RewriteCond %{QUERY_STRING} ^$ RewriteRule ^(.*)$ http://domena/kontakt.html [L,R=301] RewriteCond %{REQUEST_URI} ^\/shopingcart.php$ RewriteCond %{QUERY_STRING} ^$ RewriteRule ^(.*)$ http://domena/koszyk.html [L,R=301] RewriteCond %{REQUEST_URI} ^\/about.php$ RewriteCond %{QUERY_STRING} ^$ RewriteRule ^(.*)$ http://domena/o_nas.html [L,R=301] RewriteCond %{REQUEST_URI} ^\/index.php$ RewriteCond %{QUERY_STRING} ^$ RewriteRule ^(.*)$ http://domena/ [R=301,L] RewriteCond %{HTTP_HOST} ^www.domena(.*) [NC] RewriteRule ^(.*)$ http://domena/$1 [R=301,L] RewriteRule ^kontakt.html$ contact.php [L] RewriteRule ^koszyk.html$ shoppingcart.php [L] RewriteRule ^o_nas.html$ about.php [L] |
|
|
![]() ![]() |
![]() |
Aktualny czas: 25.08.2025 - 04:49 |