1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Simple question but never done it before

Discussion in 'Site & Server Administration' started by jg123, May 6, 2009.

  1. #1
    I need to redirect http://www.wjnj.com/ to http://www.wjnj.com/forum

    but when I set that up in cpanel I get an error that it will never find the page because of an endless loop.

    What am I doing wrong?

    thanks
     
    jg123, May 6, 2009 IP
  2. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #2
    not sure what you would be doing wrong as it is suppose to work with a cpanel redirect.

    You might want to google for an htaccess redirect.....a 301 redirect.... with that info you should have enough to google and get your answer.
     
    Camay123, May 6, 2009 IP
    jg123 likes this.
  3. cfortner

    cfortner Peon

    Messages:
    46
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The only reason I can think of that an endless loop would be created is if you had wjnj.com/forum forwarded to wjnj.com/ and wjnj.com/ forwarded to wjnj.com/forum. Double check your other redirect rules and make sure there are no other redirects for wjnj.com/
     
    cfortner, May 6, 2009 IP
    jg123 likes this.
  4. jg123

    jg123 Notable Member

    Messages:
    6,006
    Likes Received:
    387
    Best Answers:
    0
    Trophy Points:
    295
    #4
    Thanks, is there another place to set re-directs other than the re-direct tab? Because there was none other set.
     
    jg123, May 7, 2009 IP
  5. bratosab

    bratosab Active Member

    Messages:
    324
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #5
    Easy, use a meta refresh:
    create a index.html in wjnj.com/ and insert this code:

    <html> <head> <title>Redirecting...</title> <META http-equiv="refresh" content="2;URL=http://www.wjnj.com/forum"> </head> </html>

    Good luck!
     
    bratosab, May 10, 2009 IP
    jg123 likes this.
  6. leeza

    leeza Peon

    Messages:
    205
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    why not use .htaccess for redirection.
     
    leeza, May 10, 2009 IP
  7. servicedb

    servicedb Peon

    Messages:
    146
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You could also use PHP:

    index.php (in your root folder):
    <?php
    header("HTTP/1.1 301 Moved Permanently");
    header("location: http://www.wjnj.com/forum");
    PHP:
     
    servicedb, May 10, 2009 IP
    jg123 likes this.
  8. jg123

    jg123 Notable Member

    Messages:
    6,006
    Likes Received:
    387
    Best Answers:
    0
    Trophy Points:
    295
    #8
    Oh, boy....now I am confused with all my options. Can someone tell me what the easiest one is :)

    I tried adding:

    <?php
    header("HTTP/1.1 301 Moved Permanently");
    header("location: http://www.wjnj.com/forum");

    into index.php and I get an error

    I tried this one too:

    Easy, use a meta refresh:
    create a index.html in wjnj.com/ and insert this code:

    <html> <head> <title>Redirecting...</title> <META http-equiv="refresh" content="2;URL=http://www.wjnj.com/forum"> </head> </html>

    but no luck
     
    jg123, May 20, 2009 IP
  9. servicedb

    servicedb Peon

    Messages:
    146
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Try, I gave you a functional PHP code. Just copy/paste.
     
    servicedb, May 20, 2009 IP
  10. jg123

    jg123 Notable Member

    Messages:
    6,006
    Likes Received:
    387
    Best Answers:
    0
    Trophy Points:
    295
    #10
    I pasted it right on top of everything else and it didn't work...is there somewhere in particular I need to do it?
     
    jg123, May 20, 2009 IP
  11. alexpr07

    alexpr07 Active Member

    Messages:
    284
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    73
    #11
    The above examples should work but I'm not too familiar with that. You can try javascript:
    <script language='javascript'>
    location='http://www.wjnj.com/forum';
    </script>

    Also, I believe 301 redirect does not work because it's the same domain. 301 redirects to a different domain, not folder.
     
    alexpr07, May 20, 2009 IP
    jg123 likes this.
  12. ravee1981

    ravee1981 Active Member

    Messages:
    712
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #12
    you could just use meta refresh right?
     
    ravee1981, May 21, 2009 IP
  13. jg123

    jg123 Notable Member

    Messages:
    6,006
    Likes Received:
    387
    Best Answers:
    0
    Trophy Points:
    295
    #13
    Thanks again for all the ideas but if anyone can help I need exact, step-by-step instructions.
     
    jg123, May 21, 2009 IP
  14. gary4gar

    gary4gar Peon

    Messages:
    496
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #14
    From Cpanel

    Domains --> Manage Redirects -->Add Redirect --> Permanent (301)
    Select:
    * http://(www.)? wjnj.com
    * leave next box empty
    * redirects to: wjnj.com/forum
    * Select Redirect with or without www.
    * Click Add

    Simple!
     
    gary4gar, May 22, 2009 IP
    jg123 likes this.