Topic-icon Problems with www domain

Active Subscriptions:

None
13 years 11 months ago #24256 by patjor
When someone likes a product or comment it under my page pincat.com.br it wont show up if i put www.pincat.com.br on my website
The topic has been locked.
Support Specialist
13 years 11 months ago #24291 by alzander
Replied by alzander on topic Problems with www domain
Patricia,
That's correct. Facebook uses the URL as the 'key' for each page's Likes and Comments. The same thing occurs with search engines, actually, and having both www and non-www lead to the same content is what's called 'duplicate content'. It can hurt your search engine rankings as well as cause Like's and Comment's to be split across both pages.

We'd highly recommend redirecting all www URLs to non-www (or vice versa), whichever you prefer. You can do this with your .htaccess file with the following code:
RewriteCond %{HTTP_HOST} !^www.site.com [nc] 
RewriteRule ^(.*) http://www.site.com/$1 [r=301,NC,L]
Alternatively, almost all 3rd party SEF extensions for Joomla include an option to force the redirect as well. There are also some free plugins that will do it too.

Hope that helps explain. Unfortunately, this isn't something we can fix in JFBConnect itself.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 11 months ago #24294 by patjor
Replied by patjor on topic Problems with www domain
Oh ok, Thank you very much, I will fix it on the server.
The topic has been locked.
Support Specialist
13 years 11 months ago #24323 by alzander
Replied by alzander on topic Problems with www domain
Let us know how it goes, and good luck!

Alex
The topic has been locked.
Active Subscriptions:

None
13 years 10 months ago #24773 by patjor
Replied by patjor on topic Problems with www domain
I copied the code exactly as you posted it replacing the www.site.com for my website address but still didn“t work. I Think I might have done something wrong
The topic has been locked.
Support Specialist
13 years 10 months ago #24787 by alzander
Replied by alzander on topic Problems with www domain
There's a lot that can go right, and wrong, in an .htaccess file. That was just one snippet of a lot of stuff that probably should be in there to make it all work. The only other thing I can think is to make sure the line below is above the 2 lines I gave you before:
RewriteEngine On
That line is part of the default .htaccess that comes with Joomla, but you may not have put the code above below that line (to enable the redirection in the first place). However, the .htaccess file can be disabled or restricted in many different ways not allowing the redirection I mentioned to work at all.

Additionally, if you're using a non-Apache server, something like Microsoft IIS or nginx, the .htaccess won't work. There are plenty of Joomla extensions that actually can perform the redirect for you automatically as well. I don't have any recommendations for this, but you can find them on the JED.. some are full SEF extension (like sh404) and others are just meant for this exact purpose.

Hope that helps give some pointers,
Alex
The topic has been locked.