|
|
|
|
![]() ![]() |
May 26 2006, 02:19 AM
Post
#1
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 103 Joined: 27-April 06 Member No.: 22,572 |
In the future for when I get a top level domain, is it possible to keep my current trap17 subdomain and have it forward to the new domain, just in case visitors do not know that the domain has changed?
|
|
|
|
May 26 2006, 01:41 PM
Post
#2
|
|
|
Trap Double Mocha Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 2,220 Joined: 5-November 05 From: That one place over there... Member No.: 13,830 |
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.
|
|
|
|
May 26 2006, 02:06 PM
Post
#3
|
|
|
Desperately seeking "any key" to continue... ![]() Group: Admin Posts: 3,438 Joined: 23-April 05 From: Trap17 storage box Member No.: 6,042 |
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): CODE <?PHP This will act as forwarding all trafic that goes to your sub-domain to designated location (in this case to your domain name). header('Location: http://www.yourDomain.dot/'); ?> 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. |
|
|
|
May 26 2006, 08:12 PM
Post
#4
|
|
|
Member [Level 2] ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 75 Joined: 17-April 06 Member No.: 21,967 |
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 CODE Redirect /olddirectory/oldfile.html http://yoursite.com/newdirectory/newfile.html save and test mine is simply CODE 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) QUOTE <meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com"></HEAD> 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. |
|
|
|
May 26 2006, 08:46 PM
Post
#5
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 103 Joined: 27-April 06 Member No.: 22,572 |
Thanks so much! It's getting close to when I finally get my own domain!
|
|
|
|
May 27 2006, 07:17 AM
Post
#6
|
|
|
Desperately seeking "any key" to continue... ![]() Group: Admin Posts: 3,438 Joined: 23-April 05 From: Trap17 storage box Member No.: 6,042 |
Topic has been answered and now closed. If you are the starter of this topic and would like to continue this thread, please PM any moderator and request to be reopened.
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 26th July 2008 - 04:38 PM |