Niestety google zdążył zaindeksować część podstron jeszcze ze starymi adresami, czyli np. strona.pl/art?id=123
Próbuję w .htaccess przekierować plik /art?id=123 na /artykul-o-nowych-zwierzatkach
W tym celu wpisałem:
Redirect 301 /art?id=123 /art-o-nowych-zwierzatkach
Ale niestety po wpisaniu adresu strona.pl/art?id=123 nie następuje przekierowanie

Cały plik .htaccess wygląda tak:
Cytat
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.strona\.pl$ [NC]
RewriteRule ^(.*)$ http://strona.pl/$1 [L,R=301]
RewriteCond %{REQUEST_URI} ^\/index.php$
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)$ http://strona.pl/ [L,R=301]
order allow,deny
allow from all
deny from 109.163.226.218
RewriteRule ^arts$ art.php
RewriteRule ^art-([a-zA-Z0-9\-]+)$ art.php?nice=$1
Redirect 301 /art?id=123 /artykul-o-nowych-zwierzatkach
RewriteCond %{HTTP_HOST} ^www\.strona\.pl$ [NC]
RewriteRule ^(.*)$ http://strona.pl/$1 [L,R=301]
RewriteCond %{REQUEST_URI} ^\/index.php$
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)$ http://strona.pl/ [L,R=301]
order allow,deny
allow from all
deny from 109.163.226.218
RewriteRule ^arts$ art.php
RewriteRule ^art-([a-zA-Z0-9\-]+)$ art.php?nice=$1
Redirect 301 /art?id=123 /artykul-o-nowych-zwierzatkach