The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Need some help with HTML....
I KNOW this can be done because I've done it before. Now I just can't remember how I did it. I need an index.html file that will redirect mysite.org to mysite.org/forum/ I've searched and couldn't find much without using META tags or htaccess files which neither worked. If you know how to do this, please paste the code up for me. And I'll know if its what I need as soon as I look at it. Thanks in advance.
|
#2
|
||||
|
||||
Quote:
Code:
<html> <body> <p align="center">The page you are looking for is not here. Try:</p> <p align="center"> <a href= "http://www.domain.com/htmljavascript.htm"> www.domain.com/htmljavascript.htm</a></p> <p align="center">If you are not redirected automatically within a few seconds then please click on the link above.</p> <script language="JavaScript"><!-- setTimeout('Redirect()',4000); function Redirect() { location.href = '../htmljavascript.htm'; } // --></script> </body> </html> |
#3
|
||||
|
||||
Well, no, thats not it, BUT, I did get it to temporarily redirect using....
Code:
<html> <head> <META HTTP-EQUIV="REFRESH" content="0;URL=http://www.redlinemotorsports.org/forum/index.php"> </head> <body> </body> </html> |
#4
|
||||
|
||||
I couldn't find anything else that didn't use the META refresh or .htaccess, either. As I understand, that won't work in all browsers.
|
#5
|
|||
|
|||
I've always used htaccess to do this, and the only problem I ever came across was that htacess and cell phones (wap) don't go together. But anyone who uses them would probably use the ful URL to the page anyway.
|
#6
|
|||
|
|||
Try this htaccess
Code:
RewriteEngine On RewriteRule ^(.*)$ http://www.redlinemotorsports.org/forum/$1 [L,R=301] |
#7
|
||||
|
||||
Or make an index.php page instead of an index.html, and just use:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|