Helpful Information
 
 
Category: General Hosting/Server Discussions
Easy Redirecting Subdomain Question

Hi, i have two servers one is with Servage and does not have cPanel.

In cPanel you can easily redirect a subdomain using the additional options.

In Servage there are no clear options for that. How do i go about doing it? Is it through .htaccess ??

let me know what im to do please.. steo by step thanks.

Use an HTML redirection page:


This page shows how to use an HTML <META> tag in the header to redirect to another page. The <META> tag goes in the <HEAD> section of your HTML document. The <META> tag on this page looks like:

<META HTTP-EQUIV="Refresh"
CONTENT="5; URL=html-redirect.html">

The "5" means to wait 5 seconds before redirecting. The "html-redirect.html" after "url=" is the URL of the page to which to redirect.

These two pages, "html-redirect.html" and "html-redirect2.html", will continue to switch back and forth until you close the window.

It is customary to include a direct link to the page that will be switched to automatically in case you get an older browser that doesn't support the feature or the user doesn't want to wait. Something like:

This page has moved. If your browser doesn't automatically redirect to its new location, click here.

Just follow the instructions above to setup a redirection page, such as inside index.html or what not.

Cheers
Steve

Thanks, this was very useful :)

If you are running php you can also create an index.php containing just this one line;

<?php header("Location: http://www.newdomain.com/path/"); ?>

and place it in the root of the old domain/subdomain.

That should be a mini-howto, Paul. I've known about META redirects for ages, but I had no idea you could do it that way.

I believe you can do a .htaccess redirect as well. I am not sure which one of these are the fastest, or best. You can find .htaccess redirects with a simple google search.










privacy (GDPR)