Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?stara-domena\.pl [NC]
RewriteRule (.*) http://nowa-domena.pl/$1 [R=301,L]


Przekierowanie 301 domeny oraz subdomen na inną domenę

Code Block
RewriteCond %{HTTP_HOST} !^.stara-domena.pl(.*) [NC]
RewriteRule ^(.*)$ http://www.nowa-domena.pl/ [R=301,L]


Przekierowanie z domena.pl na www.domena.pl (z www)

...