How to Redirect a Web Page

Discussion in 'Site & Server Administration' started by digidogstudios, Jun 28, 2005.

  1. #1
    hey guys just put together a guide that i this you will find very useful, covers pretty much every way to do a 301 redirect, check it out:

    How to redirect a web page
     
    digidogstudios, Jun 28, 2005 IP
    mopacfan likes this.
  2. Ian

    Ian Well-Known Member

    Messages:
    409
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    125
    #2
    Terrific information, thanks for posting it :)

    Ian
     
    Ian, Jun 28, 2005 IP
  3. mopacfan

    mopacfan Peon

    Messages:
    3,273
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That is a most excellent resource. Great job!
     
    mopacfan, Jun 28, 2005 IP
  4. digidogstudios

    digidogstudios Guest

    Messages:
    62
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks!! :D:D
     
    digidogstudios, Jun 28, 2005 IP
  5. digidogstudios

    digidogstudios Guest

    Messages:
    62
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    what do the rest of ya's think?
     
    digidogstudios, Jul 12, 2005 IP
  6. kdb003

    kdb003 Active Member

    Messages:
    150
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    73
    #6
    I just switched my meta refresh redirect that was up for about 2 hours. thanks!
     
    kdb003, Jul 12, 2005 IP
  7. girl

    girl Active Member

    Messages:
    1,059
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    90
    #7
    cheers just bookmarked it for further reference
     
    girl, Jul 13, 2005 IP
  8. Dazed_and_confused

    Dazed_and_confused Well-Known Member

    Messages:
    2,071
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    120
    #8
    php:
    header("Location: link");

    before headers sent
     
    Dazed_and_confused, Jul 13, 2005 IP
  9. Jaimitodelqueso

    Jaimitodelqueso Peon

    Messages:
    48
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Indeed useful, thanks. I have a question on this topic:

    I have my main content/product pages in the root directory (i.e. xxx.com/product.htm), I then have two folders/directories for bookings and secure payments. (i.e. xxx/com/Bookings/product.htm)

    What I would like to do is this:
    have all root files automatically 301 to another domain name where I will host those pages (to get SE's going to the .com.au domain), but I would like to have my other 2 folders stay on the regular .com server (I will link back to them from the .com.au pages). Is there a way of doing this without doing a 301 redirect for each and every page?... Or am I going about this completely the wrong way...?

    Opinions and advice much appreciated!
     
    Jaimitodelqueso, Jul 14, 2005 IP
  10. Jaimitodelqueso

    Jaimitodelqueso Peon

    Messages:
    48
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #10
    replying to myself here!

    Is this appropriate?

    RewriteEngine on
    RewriteRule ^/~(.+) h-p://newserver/~$1 [R,L]

    changed the http as can't post links!
     
    Jaimitodelqueso, Jul 14, 2005 IP
  11. pcdoc

    pcdoc Active Member

    Messages:
    690
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    70
    #11
    great review, thanks
     
    pcdoc, Jul 16, 2005 IP