News:

Tekforums.net - The improved home of Tekforums! :D

Main Menu

Addon domain page redirection?

Started by zpyder, August 08, 2008, 15:01:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

zpyder

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?

Sweenster

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();
?>

Maldonado

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?

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

Sweenster

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.