How to redirect a page

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
XxLMM13xXgaming
New to forums
New to forums
Posts: 2
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Mon Oct 12, 2015 7:32 am

How to redirect a page

Post by XxLMM13xXgaming »

How would i make it so when people go to this link: http://xaxisgaming.site.nfoservers.com

It automatilcy re-directs them to this link: http://xaxisgaming.site.nfoservers.com/forums

Please help! Thanks
doulos9
This is my homepage
This is my homepage
Posts: 200
Joined: Sun Sep 15, 2013 9:44 pm

Re: How to redirect a page

Post by doulos9 »

1. Create an HTML page with content like:

Code: Select all

<!doctype html public "-//wc3//dtd html 4.0//en">
<html>
<head>
<meta http-equiv="refresh" content="0; url=/forums" />
</head>
<body>
</body>
</html>
OR

2. Create a PHP page with content like:

Code: Select all

<?php
header('Location: '.forums);
?>
Put one of these files in your home public directory.
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: How to redirect a page

Post by kraze »

You can also do this via the "Domains" tab in your control panel. For the root of your domain in the "Target" box, enter "public/forums".
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
XxLMM13xXgaming
New to forums
New to forums
Posts: 2
Joined: Mon Oct 12, 2015 7:32 am

Re: How to redirect a page

Post by XxLMM13xXgaming »

so i did this: https://gyazo.com/980e2a85c468e289e4f6bfa5ebbd311c and it did not work :(

where would i put that html code???
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: How to redirect a page

Post by kraze »

In the "subdomain" box change that to "@".
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
doulos9
This is my homepage
This is my homepage
Posts: 200
Joined: Sun Sep 15, 2013 9:44 pm

Re: How to redirect a page

Post by doulos9 »

Follow kraze's advice to redirect using your domains tab in the control panel.

However, if you want to put that html code in copy and paste it to a good text editor and save it as index.html then upload it to your public folder.

For the php code copy and paste it to your editor and save it as index.php and upload it to your public folder.
doulos9
This is my homepage
This is my homepage
Posts: 200
Joined: Sun Sep 15, 2013 9:44 pm

Re: How to redirect a page

Post by doulos9 »

Either way you will need to fix your subdomain and change it to @
brianmanee
New to forums
New to forums
Posts: 1
Joined: Tue Apr 04, 2017 9:36 pm

Re: How to redirect a page

Post by brianmanee »

A 301 redirect is a permanent redirect from one URL to another. 301 redirects send site visitors and search engines to a different URL than the one they originally typed into their browser or selected from a search engine results page. These redirects also link various URLs under one umbrella so search engines rank all of the addresses based on the domain authority from inbound links. More about....Redirect a Web Page

Brian
User avatar
TacTicToe
This is my homepage
This is my homepage
Posts: 848
Joined: Fri Feb 18, 2011 1:08 pm
Location: USA
Contact:

Re: How to redirect a page

Post by TacTicToe »

Nice necro. :)
Post Reply