Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CFLOCATION or CFHEADER - google

Guest
Aug 03, 2008 Aug 03, 2008
Hi - I just signed up for a new host, I was under the impression I could easily have multiple domains running off the same ip. My other host (hosting static sites only) was simple, you add as many domains and point them into subdirectories using GUI tools.

'My new host now says it is best to setup another IP'. This will cost me another $50 a month ($45USD). I assume this is expensive in Australia compared to US.

My new host says there is another work around... I must use a CF tag, either: CFLOCATION or CFHEADER. I assume I put these in the Header of a index.cfm file under the root of my ip?

Then in the index.cfm page i should put:

<CFHEADER statuscode="301" statustext="Moved Permanently">
<CFHEADER name="..domain1/" value="wwww.domain1.com">

<CFHEADER statuscode="301" statustext="Moved Permanently">
<CFHEADER name="..domain2/" value="www.domain2.com">

Is this correct, I really have no idea what I am doing!

Also, more importantly, how will this impact SEO issues with each domain? Will google be able to follow this too?

I am open to other alternatives to solve this issue, please suggest.

Thanks
569
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Aug 03, 2008 Aug 03, 2008
Hi,

Put these lines in your index.cfm

<CFHEADER statuscode="301" statustext="Moved Permanently">
<CFHEADER name="Location" value="www.domain2.com">

quote:

Also, more importantly, how will this impact SEO issues with each domain? Will google be able to follow this too?


I think it WON'T.. It might stop at the current URL (before the redirection occurs)....

HTH

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 04, 2008 Aug 04, 2008
Thanks but how do I specify the 'Location'? I need to point to index.html in a sub directory.

Also, found out that google webmaster tools recommends a 301 permanent move.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Aug 04, 2008 Aug 04, 2008
LATEST
Hi,

Can't you do it like this?

<CFHEADER name="Location" value="www.your_domain.com\your_sub_directory\index.html">

quote:

Also, found out that google webmaster tools recommends a 301 permanent move.


Yes you are right.. .What I was trying to mention earlier as "not supported" is the temporary move.. Sorry for that..
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources