Announcement

Collapse
No announcement yet.

Redirection?

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

  • 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/?

  • #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


    • #3
      Thanks Steve

      Comment


      • #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


        • #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


          • #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


            • #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


              • #8
                Thanks for that, worked a treat

                Comment

                Related Topics

                Collapse

                Working...
                X