Web Hosting Talk







View Full Version : Setting up a Redirect??


RobertMaltby
05-18-2005, 01:13 PM
how could i set up a redirect from www.gameserverfaq.com to www.gameserverfaq.com/forums/index.php

I use Cpanel if that helps any..

Thanks

VolkNet
05-18-2005, 01:27 PM
It's pretty simple.

Login to cpanel by going to http://www.gameserverfaq.com/cpanel/

Click on redirects.

In the second box enter http://www.gameserverfaq.com/forums/index.php

It should work. :)

AskAR
05-18-2005, 02:01 PM
If you would like redirection with HTML. then add fowlloing line in your home page ofwww.gameserverfaq.com - after <head> tag.

<meta http-equiv="refresh" content="1;URL=http://www.gameserverfaq.com/forums/index.php">

Carp
05-18-2005, 02:21 PM
make an index.php and inside include the following:


<?php
Header ("Location: http://www.gameserverfaq.com/forums/index.php");
?>




Thats it :)

Carp
05-18-2005, 02:23 PM
Hmm lol.....

vB added the <a href ********, Just remove the HTML above and it will work.

Loveless
05-19-2005, 11:28 AM
you could always create a .htaccess file with the following code

RewriteEngine On
Options +FollowSymlinks
RewriteBase /

RewriteRule ^forums/index.php$ (or maybe not the $, can't remember at the moment :/ )

that SHOULD automatically rewrite the url to be that, mind you I'm a lil rusty with them

VolkNet
05-19-2005, 08:41 PM
And one last way to do it is to create a .htaccess file in your root directory with the following:

redirect 301 / http://www.gameserverfaq.com/forums/index.php