Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirects

Status
Not open for further replies.

Foamcow

Programmer
Nov 14, 2002
6,092
GB
I'm in danger of falling into the "use the search function" camp here.. but I'm having a brain f@rt and need to clear something up to rassure myself.

I discovered that my employer owned a few extra domain names so decided to point them at the company site
Now, the extra domains are registered with easily.co.uk so I used their control panel to change the name server to those of our web host and set up stuff over there so that those domain names pointed at the same root directory as the "main" one.

It all works fine, no problems there.
Then I decided to run a redirect check from
It tells me that there either isn't a redirect in place or it's not search engine friendly.

I *think* it's OK, but can someone confirm this for me one way or the other. If it's not then I will change the domains to point at a page with a 301 redirect.


Foamcow Heavy Industries - Web design and ranting
Toccoa Games - Day of Defeat gaming community
Target Marketing Communications - Advertising, Direct Marketing and Public Relations
"I'm making time
 
If all the domain names return 200 to the user agent they will be seen as duplicates and all but one will get buried by the dup filter, usually not the one you want to survive either. To add to that each SE could pick a different one depending on their criteria of importance. A 301 redirect will make sure this doesn't happen.

Check the response codes with WebBug or you could give this a test. Still a work in progress btw.

ww*w.cands.dnsalias.com/tools/site-check/header-check/

(link broken because it's my test site and I don't want crawlers in there [smile])


Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
Are you sure your response code detection is working correctly?

I just checked

which just contains a PHP script that sends a 301 response and redirects to foamcow.com/rant.php

Your doo-dah said it gave a 200.
Or is that right? I can't think.. I just watched Troy and my brain hasn't woken up again yet.

Foamcow Heavy Industries - Web design and ranting
Toccoa Games - Day of Defeat gaming community
Target Marketing Communications - Advertising, Direct Marketing and Public Relations
"I'm making time
 
not 100% sure yet, need some more testing on it. Seems fine at hostname level and with server redirects but isn't overly fond of scripted ones.
But heyho, it's all part of the fun.

Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top