redirect

Discussion in 'HTML & Website Design' started by onlinestudio, Jan 24, 2008.

  1. #1
    I know I am being lazy by not going out and looking this up but how do you do a redirect for a web page you own to another you own?
     
    onlinestudio, Jan 24, 2008 IP
  2. ilovelinux

    ilovelinux Peon

    Messages:
    285
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You need to set it up on your hosting panel system. Its something like a domain redirect option.
     
    ilovelinux, Jan 24, 2008 IP
  3. onlinestudio

    onlinestudio Peon

    Messages:
    237
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    sankyu
    .
     
    onlinestudio, Jan 24, 2008 IP
  4. r2ebooks

    r2ebooks Peon

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i want to redirect from http://www.mysite.com to http://www.mysite.com/abcd

    i try with control panel but getting error related to .htacess or something like that

    how can i redirect as mentioned above?
     
    r2ebooks, Jan 24, 2008 IP
  5. ilovelinux

    ilovelinux Peon

    Messages:
    285
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Can you pm me the contents of your .htaccess file?
     
    ilovelinux, Jan 24, 2008 IP
  6. ilovelinux

    ilovelinux Peon

    Messages:
    285
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Oh sorry. So you know nothing about .htaccess? Let me help fixing it for you. PM me the details if you are interested.:)
     
    ilovelinux, Jan 24, 2008 IP
  7. TechnoGeek

    TechnoGeek Peon

    Messages:
    258
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    onlinestudio:

    You add to your .htaccess file in the root directory a line like this one:

    RedirectPermanent /orig-page.html http://www.mydomain.com/redir-page.html

    The .htaccess is edited like any other text file, but keep it in Unix format.
     
    TechnoGeek, Jan 24, 2008 IP
  8. angilina

    angilina Notable Member

    Messages:
    7,824
    Likes Received:
    186
    Best Answers:
    0
    Trophy Points:
    260
    #8
    if u use php then use this code to redirect

    <?php
    $q="www.urdomain.com";
    header("Location: $q") ;
    ?>
     
    angilina, Jan 30, 2008 IP
  9. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #9
    What's wrong with a permanent 301 redirect from the server? As opposed to a scripting redirect.
     
    Stomme poes, Jan 30, 2008 IP