Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Charlie B
SEO Problem
July 2, 2010 5:27 AM
Answer

Charlie B

Rank: New Member

Posts: 9

Join Date: March 5, 2009

Recent Posts

If you have a single Liferay instance, with multiple communities hosting multiple sites (using VirtualHosts to host their own domain names), is it possible to prevent Site A from being accessed through SiteB's VirtualHost URL?

An example:

Site A:
- URL: www.sitea.com
- Community Name: SiteA

Site B:
- URL: www.siteb.com
- Community Name: SiteB

By default you can access Site B through the URL www.sitea.com/web/SiteB/. Additionally you can also access other resources like Images Library and Document Library for site B through Site A's virtual host.

If Google, etc.. (somehow) gets wind of this it can completely mess up SEO for either or both sites as there will be a cross pollination of keywords for both hostnames. i.e. Site B could end up being the number 1 ranking for site A's keywords.

This is not a theoretical problem by the way, it has actually happened.
steve rieger
RE: SEO Problem
July 2, 2010 11:20 PM
Answer

steve rieger

Rank: Expert

Posts: 436

Join Date: September 11, 2006

Recent Posts

htaccess and robots.txt are your friends
Charlie B
RE: SEO Problem
July 8, 2010 3:02 AM
Answer

Charlie B

Rank: New Member

Posts: 9

Join Date: March 5, 2009

Recent Posts

Robots would seem to be the best bet as blocking access to /web/ as doing it via htaccess could mess up legitimate parts of the site. I generally hate adding custom Apache config's for Liferay sites as it sort of defeats the whole point of having a CMS/Portal system (especially when you have 100+ sites that are constantly changing).

This would not solve the problem of Document Library cross pollination though.

Splitting each site into different portals within the same liferay instance would seem to do it, but of course then you lose some of the shared aspects which may be beneficial.
David García González
RE: SEO Problem
December 1, 2011 5:31 AM
Answer

David García González

Rank: Regular Member

Posts: 127

Join Date: July 14, 2009

Recent Posts

There is a bug related to this:

http://issues.liferay.com/browse/LPS-20389

You can use canonical tag in header
David García González
RE: SEO Problem
December 13, 2011 3:00 AM
Answer

David García González

Rank: Regular Member

Posts: 127

Join Date: July 14, 2009

Recent Posts

Anybody knows the importance of this url repeated problem?
Sanjay Sharma
RE: SEO Problem
December 17, 2012 2:23 AM
Answer

Sanjay Sharma

Rank: New Member

Posts: 6

Join Date: October 12, 2012

Recent Posts

You have better idea from here (http://t.co/SZgTUvuK)