Форум АНТИЧАТ

Форум АНТИЧАТ (https://forum.antichat.xyz/index.php)
-   PHP, PERL, MySQL, JavaScript (https://forum.antichat.xyz/forumdisplay.php?f=37)
-   -   Скрипт редиректа (https://forum.antichat.xyz/showthread.php?t=179899)

andreipup 18.02.2010 18:26

Скрипт редиректа
 
Подскажите обычный скриптик.

emillord 18.02.2010 18:28

Код:

<html>
<head>
  <meta http-equiv='refresh' content='0; url=../../index.php'>
 </head>
<body>

Пойдёт?

Nelzone 18.02.2010 18:33

PHP код:

<?php
header
('Location: http://www.example.com/');
?>


andreipup 18.02.2010 18:43

Спасибо.

Есть что то с админкой?
Просто урл часто менять нужно(

satana-fu 18.02.2010 18:45

Цитата:

Сообщение от andreipup
Подскажите обычный скриптик.

http://htmlcoder.visions.ru/HTML/?9

тройной редирект

Цитата:

<?
$URL="http://www.new.site/page.html";
header ("Location: $URL");
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script language="JavaScript1.1" type="text/javascript">
<!--
location.replace("http://www.new.site/page.html"); // текущая страница будет заменена в history на новую — важно в плане юзабилити
//-->
</script>
<noscript>
<meta http-equiv="Refresh" content="0; URL=http://www.new.site/page.html"> <!-- для тех нескольких процентов «сёрферов», которые отключили JavaScript -->
</noscript>
</head>
<body>
Мы перебрались на <a href="http://www.new.site/page.html">новое местечко</a>.
</body>
</html>


Время: 14:32