poprawne przekierowanie linków strony gdy przenosimy stronę na inną domenę
RewriteEngine On RewriteCond %{HTTP_HOST} ^old_domain_name\.pl$ RewriteRule ^(.*) http://new_domain_name.pl/$1 [QSA,L,R=301] RewriteCond %{HTTP_HOST} ^www\.old_domain_name\.pl$ RewriteRule ^(.*) http://new_domain_name/$1 [QSA,L,R=301] RewriteRule ^/single_page_1_address/$ http://new_domain_name.pl/single_page_1_address/? [L,R=301] RewriteRule ^/single_page_2_address/$ http://new_domain_name.pl/single_page_2_address/? [L,R=301]
—
Hope this helps and happy coding :)