Page tree

Versions Compared

Key

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

...

Code Block
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


Przekierowanie na HTTPS (302)

Code Block
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI}


Przekierowanie przez PHP na inny adres

Code Block
languagephp
<?php
header("Location: http://mojanowadomena.pl/index.php");
die();
?>

...