Tekforums

Chat => Entertainment & Technology => Topic started by: zpyder on August 08, 2008, 15:01:51 PM

Title: Addon domain page redirection?
Post by: zpyder on August 08, 2008, 15:01:51 PM
I seem to be struggling a little. Basically Im wanting to sort out a redirect for my boss so that its easier to get to the shared skydrive page Ive set up. My website is zpyder.co.uk, but I also have yupyup.co.uk, which I think might be easier to remember.

However, yupyup is set as an addon domain. I cannot find any option in cpanel to redirect a specific page for an addon domain to another place, only the root address of the addon. EG,

I can redirect yupyup.co.uk to www.somewhereelse.com, but I cannot redirect yupyup.co.uk/data to www.somewhereelse.com

Anyone got any suggestions or a basic noob guide?
Title: Addon domain page redirection?
Post by: Sweenster on August 08, 2008, 17:24:49 PM
You can use a html header redirect to instantly redirect to another site without the browser even showing loading the page.

Will have a look and see if i can find it for you.

tis a php header code that you can add to an index.php in that folder, the page will never load and the new site will be loaded


header("Location: http://www.mydomain.com/newpage.html");
exit();
?>
Title: Addon domain page redirection?
Post by: Maldonado on August 08, 2008, 20:20:40 PM
Why not set up a cname for data.yupyup.co.uk ?

Or why not spend £5 and get a new .co.uk for 2 years?
Title: Addon domain page redirection?
Post by: zpyder on August 08, 2008, 21:08:38 PM
Quote from: Sweenstertis a php header code that you can add to an index.php in that folder, the page will never load and the new site will be loaded


header("Location: http://www.mydomain.com/newpage.html");
exit();
?>

Wont most browsers now block scripts like that as I guess theyll be used quite a bit by compromised/compromising websites?

Cheers for the suggestion though
Title: Addon domain page redirection?
Post by: Sweenster on August 09, 2008, 10:28:14 AM
Quote from: zpyder
Quote from: Sweenstertis a php header code that you can add to an index.php in that folder, the page will never load and the new site will be loaded


header("Location: http://www.mydomain.com/newpage.html");
exit();
?>

Wont most browsers now block scripts like that as I guess theyll be used quite a bit by compromised/compromising websites?

Cheers for the suggestion though

Never had it be blocked by any browser, tis all server side so there is no compromising, all it does is change the html header of the page to redirect to a different location, you dont actually fake the url, it just automatically redirects to the other host.