Przekierowanie na inną stronę: Różnice pomiędzy wersjami
Z ToProste
m |
m (→html) |
||
Linia 2: | Linia 2: | ||
− | ====html==== | + | ====[[html]]==== |
<syntaxhighlight lang="html4strict"> | <syntaxhighlight lang="html4strict"> | ||
<head> | <head> | ||
Linia 8: | Linia 8: | ||
</head> | </head> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
− | |||
==== [[php]] ==== | ==== [[php]] ==== |
Wersja z 00:16, 26 maj 2011
Przekierowanie na inną stronę stronę www można zrealizować to na kilka sposobów.
Spis treści
html
<head> <meta http-equiv="refresh" content="5;url=http://nowy_adres/"> </head>
php
<?php header('location: http://nowy_adres/'); ?>
js
<script> window.location = "http://nowy_adres/" </script>
htaccess
Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://nowy_adres/$1 [R=301,L]
wiki
#REDIRECT [[nazwa_strony_w_to.proste]]