# Code For Redirecting and Mirroring?

**URL:** <https://forum.kirupa.com/t/code-for-redirecting-and-mirroring/26686>\
**Category:** programming\
**Created:** [July 25, 2003, 9:20am UTC](https://forum.kirupa.com/t/code-for-redirecting-and-mirroring/26686 "2003-07-25T09:20:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdrawkcaB](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@sdrawkcaB](https://forum.kirupa.com/u/sdrawkcaB)\
**Post date:** [July 25, 2003, 9:20am UTC](https://forum.kirupa.com/t/code-for-redirecting-and-mirroring/26686/1 "2003-07-25T09:20:02Z")

</div>

Whats the HTML code to redirect to another site, and whats the code for the page to display another site? Maybe you gotta make it a 100% frame ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 1, 2003, 12:49am UTC](https://forum.kirupa.com/t/code-for-redirecting-and-mirroring/26686/2 "2003-08-01T00:49:35Z")

</div>

?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 1, 2003, 2:09am UTC](https://forum.kirupa.com/t/code-for-redirecting-and-mirroring/26686/3 "2003-08-01T02:09:41Z")

</div>

```php
<script>document.location.href('http://www.google.com');</SCRIPT>

```

I don’t understand ur second question really…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 1, 2003, 2:21am UTC](https://forum.kirupa.com/t/code-for-redirecting-and-mirroring/26686/4 "2003-08-01T02:21:19Z")

</div>

Another way of redirecting is by inserting this code in the HEAD section of your web page source:

```auto
 < meta http-equiv="refresh" content="1;URL=[URL of page you want to forward to here]" > 

```

Just make sure to move the \< and the \> at either end so that there are no spaces (I had to leave a space so that the code wasn’t processed as HTML in the post).

Change the 1 in content= to change the amount of time it takes to redirect you to the URL you specified.

I don’t understand your second question. You could use a Frame although I doubt that is the best option and if you use PHP, you could use include like so:

```php

<?
include("URL to file here") ;
?>

```
