301 Redirects - Am I doing it wrong?

Neverwhere

Senior Member
Joined
Oct 1, 2009
Messages
576
Reaction score
42
Location
V&A Waterfront
I'm trying to do a simple 301 redirect for someone and it's driving me nuts. For my own sites, I use hostmonster, which has a nice full featured cpanel that lets me manage multiple domains and redirects as well as the hosting space etc etc.

Now my problem is, the domain I want to redirect (lets call it DOMAIN-A) is held at Crazydomains.com.au, and it currently does not have any hosting space allocated to it. When I look at the domain management - the only options I have are to change the nameservers.

The guy that owns the domain, ALSO owns a site (OLD SITE) hosted at another Hosting company. What he wants to do is create a sub-folder on that existing hosting space, and host a second simple 2 page site (NEW SITE) there - then have DOMAIN-A redirect to that folder.

So "www.DOMAIN-A.com" will open "www.OLD SITE.com/NEW SITE/" (but in the address bar it will still read "www.DOMAIN-A.com")

So if I can only change the nameserver on the DOMAIN-A side, what do I do on the OLD SITE side to catch and redirect to the folder.

Both the domain management and hosting for the OLD SITE are from one company, but the domain management is in a seperate area (seperate login) to the hosting options. I have looked through the hosting options (not many features) - and there is no mention of ANY redirect or any domain related stuff.
When logging into the domain management side - there's again only nameserver options.

I've emailed both companies, and they're taking ages to respond. I've googled around and I see 301 redirects via the .htaccess file. But I'm not sure of myself regarding all this. Do I change the nameserver address on DOMAIN-A to point to the nameserver of OLD SITE.. then edit the .htaccess on OLD SITE to redirect traffic to the folder?

If so, that htaccess file will need to be at the root of OLDSITE ("www.OLDSITE.com/.htaccess")?

Am I far off? Any help would be greatly appreciated.
Thanks :)
 
Last edited:
I think you might need to look at domain forwarding: With domain forwarding, you can forward your newly-registered domain to your existing web site.

The last time I did this, I registered a new site with a hosting company who provides domain forwarding and then entered the url of my old site. The domain then redirects to the old site. If you want the site to redirect to a specific folder on the old site, you might need to look at a meta refresh tag, or meta redirect (same thing, different name). But for this to work, the company hosting Site A will need to provide you with domain forwarding and allow metatags for the domain forwarding. The code which you need to place on Site A is:

<meta http-equiv="refresh" content="0;url=NEW PAGE URL" />

Replace NEW PAGE URL with the URL of the page you want to end up on.

Maybe someone else has a better idea, but as far as I know, this is the only way.
 
Forget about html redirecting. In order to do a redirect like that you need a host for the domain and if you have to pay for a host just to redirect it, it would be rather pointless.

See if the hosting company of OLD-SITE supports addon domains and enable this option or request to enable this option. Then point the domain to the nameservers as supplied by the hosting company. If the hosting company don't allow addon domains, change to another host. cpanel piloty FTW!

Alternatively sign up for crazydomains' DNS service and apply domain forwarding. This however will cost you $1.50 per month.

Hope that help.
 
Last edited:
See if the hosting company of OLD-SITE supports addon domains and enable this option or request to enable this option. Then point the domain to the nameservers as supplied by the hosting company. If the hosting company don't allow addon domains, change to another host. cpanel FTW!
Hope that help.

Thanks for all the responses..

I had initially emailed the Hosting company of the OLD SITE and they replied...

"Our hosting servers do not support domain parking or split allocation of space. The main reason beinig is that our servers are meant for business use and multiple domain parking on a single shared hosting plan can effect stability which is undesirable for a business website.

There is nothing stopping you from creating a folder for the other domain name and using a 301 re-direct to that folder but please be aware it is unadvised."

Thats is what got me on the whole 301 redirect how-to mission. I'm going to look into namecheap:) Thanks murray ... Beyond that, I'll just wait to hear back from either company about which way to go. CrazyDomains are probably gonna suggest purchasing the DNS service..
 
Top
Sign up to the MyBroadband newsletter
X