Welcome Guest ( Log In | Register)



 
Closed TopicStart new topic
> Redirecting Or Forwarding Subdomain To Domain, just a thought
PmH
post 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?
Go to the top of the page
 
+Quote Post
Plenoptic
post 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.
Go to the top of the page
 
+Quote Post
BuffaloHELP
post May 26 2006, 02:06 PM
Post #3


Desperately seeking "any key" to continue...
Group Icon

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
header('Location: http://www.yourDomain.dot/');
?>
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.
Go to the top of the page
 
+Quote Post
Zabb
post 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.


Go to the top of the page
 
+Quote Post
PmH
post 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! smile.gif 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. smile.gif
Go to the top of the page
 
+Quote Post
BuffaloHELP
post May 27 2006, 07:17 AM
Post #6


Desperately seeking "any key" to continue...
Group Icon

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.
Go to the top of the page
 
+Quote Post

Closed TopicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Upgrading From Subdomain To Domain(2)
  2. Changing Domain Name Without Losing High Traffic To My Site(13)
  3. Changing Domain Names Question(1)
  4. Unable To Change Domain(3)
  5. Can't Park Domain Help [resolved](4)
  6. About Adding A Existing Domain [resolved](8)
  7. Domain Change Problems(2)
  8. Change Your Domain/subdomain (question)(13)
  9. If I Add A Domain Do I Still Have The Subdomain?(2)
  10. Co.cc As A Domain?(0)
  11. Alternative Access While Tranferring Domain(3)
  12. Existing Domain With Free Hosting(4)
  13. My Subdomain Not Working(3)
  14. Parking A Domain(3)
  15. Free Domain Hosting Down? [resolved](5)
  1. Domain Name Information(5)
  2. Safe Mode Of Php Configuration(4)
  3. Domain For Credits(5)
  4. Parking A Domain(1)
  5. Compuhost / Adding Extra Domain Help(2)
  6. I Would Like To Change My Domain Name [resolved](4)
  7. Changing Trap17 Domain?(2)
  8. Domain Name On Subdomain?(6)
  9. Sub Domain Problem : Urgent(10)
  10. Domain Constants --- A, Mx, Ns & Cname Values(2)
  11. I Bought A Domain Name Through Godaddy And I Need To Know How To Point It At My Trap17 Site Help Plz.(2)
  12. Spammers Using My Domain To Send Spam(2)
  13. Question About Changing Domain Names.(8)


 



- Lo-Fi Version Time is now: 26th July 2008 - 04:38 PM