Announcement

Collapse
No announcement yet.

Page Redirection

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Page Redirection

    If I wanted to point say "www.mysite.com" to www.google.com i would do the following code right?

    <?php
    header("Location: http://www.google.com");
    ?>

    Is that the simplest way to do it?

  • #2
    PHP Code:
    <?php
    header
    ("Location: http://www.Google.com/");
    ?>
    That is what I use, so yeah.

    Comment


    • #3
      If you want to point one domain to another one permanently, you could send a 301 error code along. That indicates that the site has moved permanently and browsers and search spiders should automatically update their index to not use the old URL any longer.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X