Redirection?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Yuber
    Senior Member
    • Aug 2002
    • 193
    • 3.0.0 'Gold'

    Redirection?

    How do you put in an html file to redirect to another, such as www.mysite.com to redirect you to www.mysite.com/forums/?
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #2
    Originally posted by Zehlek
    How do you put in an html file to redirect to another, such as www.mysite.com to redirect you to www.mysite.com/forums/?
    Place this in your .htaccess file:

    Redirect permanent /index.html http://www.mysite.com/forums/
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment

    • Yuber
      Senior Member
      • Aug 2002
      • 193
      • 3.0.0 'Gold'

      #3
      Thanks Steve

      Comment

      • Zxin
        New Member
        • Apr 2002
        • 16
        • 3.5.0 Pre-Release

        #4
        And for those of you who don't have access to .htaccess files.
        create an index.php and put
        <?php Header ("Location: http://$SERVER_NAME/vbulletin/"); ?>
        in it


        -Thomas
        Originally posted by Steve Machol
        Place this in your .htaccess file:

        Redirect permanent /index.html http://www.mysite.com/forums/

        Comment

        • Strike

          #5
          Originally posted by Zxin
          <?php Header ("Location: http://$SERVER_NAME/vbulletin/"); ?>
          in it
          What does this line do? I don't have it and my board is working fine.

          Comment

          • filburt1
            Senior Member
            • Feb 2002
            • 6606

            #6
            Originally posted by Strike
            What does this line do? I don't have it and my board is working fine.
            Redirects to /vbulletin instantly.

            You can simplify it by using:
            PHP Code:
            header("Location: /vbulletin/");
            exit; 
            --filburt1, vBulletin.org/vBulletinTemplates.com moderator
            Web Design Forums.net: vB Board of the Month
            vBulletin Mail System (vBMS): webmail for your forum users

            Comment

            • Guest

              #7
              You can also use this in a html files:

              Code:
              <html>
              <head>
              <title>Redirecting to the forums.</title>
              <meta http-equiv="Refresh" content="0; URL=/forum/index.php">
              </head>
              </html>

              Comment

              • gizmos
                Member
                • Aug 2006
                • 31
                • 3.6.x

                #8
                Thanks for that, worked a treat

                Comment

                Related Topics

                Collapse

                Working...