Jump to content
xisto Community
PmH

Redirecting Or Forwarding Subdomain To Domain just a thought

Recommended Posts

In the future for when I get a top level domain, is it possible to keep my current Xisto subdomain and have it forward to the new domain, just in case visitors do not know that the domain has changed?

Share this post


Link to post
Share on other sites

Yes there is a way to do that. It is a url mask which will cover over the subdomain. So of course people who try to go to the sub domain will still see the sub domain though. I would just give a notice to people that the domain is going to change a week or so in advance and you can have the domain redirect to the subdomain for a bit after the change and then get rid of the sub domain later on down the road.

Share this post


Link to post
Share on other sites

The best way to do it, in my opinion, is to add-on your domain to your hosting account. This creates a separate FOLDER of your choice under your public_html.

And have this index.php file with header() line under your sub-domain (in this case public_html):

<?PHP header('Location: http://forums.xisto.com/no_longer_exists/;
This will act as forwarding all trafic that goes to your sub-domain to designated location (in this case to your domain name).

OR, you can use FORWARDING option under cPanel to redirect from one place to another, i.e. your sub-domain to your top domain. But the key is to add-on your domain to your hosting account to separate the location of your files.

Share this post


Link to post
Share on other sites

I use a .htaccess file
in the main directory create a text doc named .htaccess the . has to be there or it wont work.
all that needs to be in the file is a single line w/ this code edit as needed

Redirect /olddirectory/oldfile.html http://yoursite.com/newdirectory/newfile.html
save and test
mine is simply
Redirect /public_html/  http://newsite.com/

you could also make a html page and add a redirect page that says we've moved click here if you're not automatically redirected

just add this to the head in your html doc (probably index.htm)

<meta http-equiv="REFRESH" content="0;url=http://forums.xisto.com/no_longer_exists/;

the zero is a timer (seconds) you can change that to say 5 and they will see the page temporarily for 5 seconds b4 the redirect.

Share this post


Link to post
Share on other sites

Thanks so much! It's getting close to when I finally get my own domain! :) I'm pretty excited. I think I'll write an announcement a week or so before, but I'll still use the subdomain to domain redirecting. :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.