|
|
|
|
![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 103 Joined: 27-April 06 Member No.: 22,572 |
Post
#1
May 26 2006, 02:19 AM
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?
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED]
Posts: 2,310 Joined: 5-November 05 From: That one place over there... Member No.: 13,830 myCENT:24.66 |
Post
#2
May 26 2006, 01:41 PM
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.
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin
Posts: 3,763 Joined: 23-April 05 From: Trap17 storage box Member No.: 6,042 myCENT:48.70 |
Post
#3
May 26 2006, 02:06 PM
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. |
![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 75 Joined: 17-April 06 Member No.: 21,967 |
Post
#4
May 26 2006, 08:12 PM
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. |
![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 103 Joined: 27-April 06 Member No.: 22,572 |
Post
#5
May 26 2006, 08:46 PM
Thanks so much! It's getting close to when I finally get my own domain! |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin
Posts: 3,763 Joined: 23-April 05 From: Trap17 storage box Member No.: 6,042 myCENT:48.70 |
Post
#6
May 27 2006, 07:17 AM
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
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
6 | Echo_of_thunder | 1,358 | 26th March 2009 - 09:04 PM Last post by: TheDisturbedOne |
|||
![]() |
2 | gamefreaksl | 4,446 | 20th July 2004 - 11:51 PM Last post by: gamefreaksl |
|||
![]() |
19 | dragonfang00 | 2,056 | 30th August 2009 - 12:10 PM Last post by: The Simpleton |
|||
![]() |
1 | zip_mc | 5,897 | 31st July 2004 - 03:16 PM Last post by: OpaQue |
|||
![]() |
1 | CodeName_88 | 3,103 | 30th July 2004 - 04:10 PM Last post by: OpaQue |
|||
![]() |
3 | t3h_m0nst3r | 5,447 | 29th July 2004 - 09:25 PM Last post by: t3h_m0nst3r |
|||
![]() |
1 | t3h_m0nst3r | 4,238 | 30th July 2004 - 03:33 AM Last post by: Thunder |
|||
![]() |
1 | -sswebmasters- | 3,748 | 30th July 2004 - 08:43 AM Last post by: OpaQue |
|||
![]() |
1 | Lal | 5,698 | 4th August 2004 - 04:43 AM Last post by: OpaQue |
|||
![]() |
6 | itasor | 4,233 | 2nd August 2004 - 05:49 PM Last post by: OpaQue |
|||
![]() |
1 | Be_Legend | 5,191 | 30th July 2004 - 08:49 AM Last post by: OpaQue |
|||
![]() |
41 | bk2070 | 5,679 | 18th October 2009 - 08:30 PM Last post by: bk2070 |
|||
![]() |
1 | dontmaimyourself | 3,406 | 31st July 2004 - 03:04 PM Last post by: OpaQue |
|||
![]() |
3 | Angelexi | 2,643 | 2nd August 2004 - 10:51 AM Last post by: OpaQue |
|||
![]() |
1 | cti | 3,664 | 31st July 2004 - 03:08 PM Last post by: OpaQue |
|||
|
Open Discussion | Time is now: 22nd November 2009 - 09:33 AM |
Web Hosting Powered by ComputingHost.com.