• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Two domains, one CI deployment: Duplicated data?

#1
[eluser]Juan Velandia[/eluser]
Hello people, I've been working with this domain www.nemoestudio.com, and I've recently bought www.nemo.com.co, I want the two domains to point to the same CI deployment and I't seems to work with this code:

Code:
if(isset($_SERVER['HTTP_HOST']))
{
    $config['base_url'] = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ? 'https' : 'http';
    $config['base_url'] .= '://'. $_SERVER['HTTP_HOST'];
    $config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);
}

But I wonder if the search engines takes this as duplicated data? if so, what should I do? any Ideas?

Thanks, and regards!

#2
[eluser]smilie[/eluser]
Hm, well search engine will recognize that both domains have same content. Take a look at permanent redirection, through DNS or through web server (Apache).

I think that search engines in those cases like to see code 302 (permanently moved) or so... Not sure tho'.

Cheers,
Smilie

#3
[eluser]rdjs[/eluser]
You could also look into rel="canonical" for duplicate domains

http://googlewebmastercentral.blogspot.c...omain.html

#4
[eluser]Juan Velandia[/eluser]
Thanks, I'll check it, best regards and Happy Xmas!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.