vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   forum redirecting... (https://vborg.vbsupport.ru/showthread.php?t=260537)

dannycutts 03-17-2011 02:55 PM

forum redirecting...
 
Hi all,

the home page of my site is mydomain.com/forum but i want it to be just mydomain.com

is there a way f doing this as I dont like the redirect?

Cheers

Danny

BoostedK20 03-17-2011 02:56 PM

I'd like to find this out too.

dannycutts 03-17-2011 03:26 PM

I think it can be done in "Forums Home Page Options" as in the option I have it called "forum" but I not sure how to change it and what needs to be done...

ANy ideas suggestion would be great :-)

Boofo 03-17-2011 05:49 PM

do a redirect in CPanel for mydomain.com

x_Coffee_x 03-17-2011 06:05 PM

You can either set up an instant redirect to your forums (So you don't have to have a page on mydomain.com that says "Please stand by, you will be redirected to the forums in a few seconds" with either HTML or PHP.

HTML:

Create a index.html file
Here's the code.
Code:

<HTML>
<HEAD>
<META HTTP-EQUIV="refresh" CONTENT="0;URL=mydomain.com">
</HEAD>
<BODY>
</BODY>
</HTML>

Copy that code into the HTML file, but change mydomain.com to yourdomain.com/forum.

If you'd like to do it with PHP (your preference), here is the code.

Create an index.php file
Code;
Code:

<?php

  header( 'Location: mydomain.com/forum' ) ;

?>

Change mydomain.com/forum to your domain.

If you would like it to redirect them in a few seconds.. lets say 5.. you would change the 0 to 5 seconds in the HTML code

Good luck :)

Boofo 03-17-2011 06:17 PM

Better to go the CPanel redirect route as you can save the extra page loads from a file.


All times are GMT. The time now is 06:29 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.01027 seconds
  • Memory Usage 1,716KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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