PDA

View Full Version : forum redirecting...


dannycutts
03-17-2011, 02:55 PM
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.
<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;
<?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.