vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Need some help with HTML.... (https://vborg.vbsupport.ru/showthread.php?t=120429)

HMBeaty 07-06-2006 01:00 AM

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. :)

Talisman 07-06-2006 01:14 AM

Quote:

Originally Posted by Redlinemotorsports
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. :)

How about this one, using javascript?

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>


HMBeaty 07-06-2006 01:31 AM

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>


Talisman 07-06-2006 01:35 AM

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.

peterska2 07-06-2006 07:29 AM

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.

harmor19 07-06-2006 07:35 AM

Try this htaccess

Code:

RewriteEngine On
RewriteRule ^(.*)$ http://www.redlinemotorsports.org/forum/$1 [L,R=301]


Behemoth 07-08-2006 05:13 PM

Or make an index.php page instead of an index.html, and just use:

PHP Code:

<?php
header
("Location: /forum/");
?>



All times are GMT. The time now is 08:45 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02303 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete