Forum Moderators: phranque

Message Too Old, No Replies

How do I redirect a subdomain?

to ta totally different domain

         

Fryman

6:02 am on Mar 9, 2005 (gmt 0)

10+ Year Member



Complicated, so I hope you understand me...

I have a domain. I log onto cpanel and create and addon domain, so I have 2 domains hosted in a single account.

I then use the addon domain and create several sub-domains for it.

I want to do a permanent redirect on one of those subdomains and point it to a totally different domain. How do I do it? I tried the redirect option on the cpanel and it only works for the main domain, not for the addon one.

I tried uploading an htaccess file to the folder where the subdomain is, and it didn't work either.

Any idea on how to do this?

jdMorgan

4:25 pm on Mar 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> I tried uploading an htaccess file to the folder where the subdomain is, and it didn't work either.

What was in that file, and *how* did it not work? Was there anything in the server error log file after you tested it?

A simple RedirectPermanent directive in .htaccess in that subdomain's subdirectory is all that should be required, assuming that you can successfully load pages from that subdomain now.

Jim