Announcement

Collapse
No announcement yet.

.htaccess forward ????

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

  • .htaccess forward ????

    i want to do this

    from main root index.php
    forward to
    forums.batalk.com/mainpage.php

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


    • #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=YOUR LOCATION HERE">
      	<title>Redirect</title>
      </head>
      <body>
      
      <h1>We have moved!</h1>
      
      <p>
      We are now located here:
      <center>
      <font size=+1><a href="YOUR LOCATION HERE">YOUR LOCATION HERE</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


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

        DirectoryIndex mainpage.php

        Comment

        Loading...
        Working...
        X