.htaccess forward ????

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • irocracer
    Member
    • Mar 2003
    • 90

    .htaccess forward ????

    i want to do this

    from main root index.php
    forward to
    forums.batalk.com/mainpage.php
  • irocracer
    Member
    • Mar 2003
    • 90

    #2
    well , what i really wanna do is make my home page when they type batalk.com or www.batalk.com will go to /mainpage.php

    Comment

    • daemon
      Senior Member
      • Jun 2003
      • 2351
      • 3.5.x

      #3
      Just make a HTML file with this in it:

      Code:
      <html>
      <head>
      	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
      	<meta http-equiv="REFRESH" content="2; URL=[color=red][b]YOUR LOCATION HERE[/b][/color]">
      	<title>Redirect</title>
      </head>
      <body>
      
      <h1>We have moved!</h1>
      
      <p>
      We are now located here:
      <center>
      <font size=+1><a href="[color=red][b]YOUR LOCATION HERE[/b][/color]">[color=red][b]YOUR LOCATION HERE[/b][/color]</a></font>
      </center>
      </p>
      
      </body>
      </html>
      There's a way to do this with PHP using the header('Location: ') function. I'm not sure if it considered a "hack" by the vB staff so I won't post it. But you can figure it out quite easily from that page.
      Bugdar: PHP bug tracking software that is beautiful, fast, and robust.

      Comment

      • irocracer
        Member
        • Mar 2003
        • 90

        #4
        i got it to work , i did this
        .htaccess

        DirectoryIndex mainpage.php

        Comment

        Related Topics

        Collapse

        Working...