Przekierowanie na inną stronę: Różnice pomiędzy wersjami
Z ToProste
Linia 21: | Linia 21: | ||
====js==== | ====js==== | ||
+ | <syntaxhighlight lang="javascript"> | ||
+ | |||
+ | <script> | ||
+ | window.location = "http://nowy_adres/" | ||
+ | </script> | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | |||
+ | ====.htaccess==== | ||
+ | |||
[[Kategoria:PHP]] | [[Kategoria:PHP]] | ||
[[Kategoria:Sztuczki]] | [[Kategoria:Sztuczki]] | ||
[[Kategoria:HTML]] | [[Kategoria:HTML]] |
Wersja z 19:50, 25 mar 2011
Jak przekierować na inną stronę www
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>