SEO redirect for Home Page

Having issues with the http access or config file not sure which ones but my problem is that my site is showing up as http://domaine.com/s?=EN in google and also when you navigate to the page it will just show up as domaine.com without the www.



For Seo purposes I have put a lot of money into doing SEO for the link www.domaine.com



Could someone tell me how to fix this… i have two languages on the site running in case that helps in terms of details.



Here is the site salviaextracts.com

To make things clear. Is the problem the language tag? Or that it's showing without www?



If it's the last one edit your config.local.php file and change this line from without to with www… for both secure and unsecure.





$config['http_host'] = 'www.your_domain.com';

Hi Flow,



Question 1 about the www. fixed! Super easy thanks! Question number two has to do with the /s?=EN how do you prevent google from caching this … don't want it to redirect users to that particular page.



I read a previous solution and went to the SEO in the addon section and enabled show language in URL… but not sure that will solve the indexing issue.




[quote name='Flow' timestamp='1327610199' post='130027']

To make things clear. Is the problem the language tag? Or that it's showing without www?



If it's the last one edit your config.local.php file and change this line from without to with www… for both secure and unsecure.





$config['http_host'] = 'www.your_domain.com';

[/quote]

You have something on your site generating a bad URL. The url syntax of /s?=EN is incorrect. If something wants to chagne or set the cart language, it is done via /?sl=EN (site language equals english).



I'm guessing you have a customization or a 3rd party addon that has an issue.

I don't have any custom addons on my cart not sure why the error is appearing, I do have a dual language setting french and english, i didn't enable the sitename.com/en/productname.html function just because of SEO reasons… in any case even without the language shown in URL it shouldn't be causing this error.



Do you know how to tell google not to index the URL [color=#282828][font=arial, verdana, tahoma, sans-serif]/?sl=EN ?? so that it indexes the normal url www.sitename.com [/font][/color]

I would guess you could put in robots.txt

Disallow: /*sl=EN



It would be worth a try but each crawler interprets robots.txt differently.

Okay I added



Disallow:[color=#009933][font=arial, sans-serif][size=1]/?sl=EN[/size][/font][/color]



Do you need the “*” or is that a typo. Any other suggestions?


[quote name='tbirnseth' timestamp='1327814111' post='130164']

I would guess you could put in robots.txt

Disallow: /*sl=EN



It would be worth a try but each crawler interprets robots.txt differently.

[/quote]

The astrik is a wildcard. It says to match everything from the starting '/' up to the sl=EN.

If you ask me, the question “how to run a multilanguage shop in terms of SEO” is still not really answered.



At least, I still do not understand what the best way is to set this up. Please see http://forum.cs-cart…0598#entry10598 (please ignore the facebook part. I solved that).



At the moment my language are showing up mixed in search results, and with the applied fix in the topic above, customers are simply always directed the main language - cs-cart does not remember a preference anymore.

Flow, this seems to be a cs-cart related problem I read the fix Dimitry told you about. The problem is my concern is concerning adding language /en/ /fr/ /es/productname.html … how does that play out for SEO if you want to rank up one particular sub page for SEO purposes isn't it better to have www.sitename.com/productname.html … does the /en/ /fr/ cause any problems.



Also the fixes he mentions doesn't really fix the issue with the weird language extension being indexed by google… and it does cause duplicate content for google, since you essentially have primary page www.sitename.com and then www.sitename.com/?SL=EN



Did you find that any of those fixes you applied mentioned in the solution you are linking to cause any significant changes w/ your issue? After reading your post- commentary seems it caused more problems the anything…



I'll simply put the disallow code for now in my robot text forme then see if that does anything …I'd appreciate if you could mention a full on fix that worked for you without causing any failures of any sorts.




[quote name='Flow' timestamp='1327867913' post='130184']

If you ask me, the question “how to run a multilanguage shop in terms of SEO” is still not really answered.



At least, I still do not understand what the best way is to set this up. Please see http://forum.cs-cart…0598#entry10598 (please ignore the facebook part. I solved that).



At the moment my language are showing up mixed in search results, and with the applied fix in the topic above, customers are simply always directed the main language - cs-cart does not remember a preference anymore.

[/quote]

Actually, I do advice using subdirectories like /en /fr etc. because in google webmaster you can target each language as a seperate website this way.



So you can target /fr for french, and /en for UK or global, for example. This way your french results will rank higher in the french search engines, and so on.



Also, I just think it makes it clear… you immediately see the language you are in.



So that's out of the way. Then we're stuck with the double content issue, as I pointed out i the bug report. The fix does fix that, only thing is, I can't get my sites homepage in my 2nd language show up in the search results. That sucks… but i'm on it now, i'll probably have this fixed soon. Please also see my last message on the bug report.

finally found the fix for the language redirect not working in 2.23 and 2.24 when you are using countries as subdirectories.



[font=arial, sans-serif][size=3]in the [/size][/font]func.php[font=arial, sans-serif][size=3] file located in the [/size][/font]addons/seo[font=arial, sans-serif][size=3] directory of your CS-Cart installation, change:[/size][/font]





if ((AREA == 'C') && empty($req['sef_rewrite']) && Registry::get('addons.seo.seo_language') == 'Y' && empty($_REQUEST) && fn_url("", 'C', 'rel', '&', Registry::get('settings.Appearance.customer_default_language')) != $_SERVER['REQUEST_URI']) {

// redirect from "[url="http://www.site.com/"]www.site.com[/url]" to "[url="http://www.site.com/en/"]www.site.com/en/[/url]" in case of multilanguage urls.

fn_define('CART_LANGUAGE', Registry::get('settings.Appearance.customer_default_language'));
fn_define('MODE', '');
header("HTTP/1.0 301 Moved Permanently");
fn_redirect(fn_url("", 'C', 'rel', '&', Registry::get('settings.Appearance.customer_default_language')), true);

}




[font=arial, sans-serif][size=3]to[/size][/font]


if ((AREA == 'C') && empty($req['sef_rewrite']) && Registry::get('addons.seo.seo_language') == 'Y' && empty($_REQUEST)) {

fn_init_localization($_REQUEST);
fn_init_language($_REQUEST);
if (fn_url("", 'C', 'rel', '&', CART_LANGUAGE) != $_SERVER['REQUEST_URI']) {
// redirect from "[url="http://www.site.com/"]www.site.com[/url]" to "[url="http://www.site.com/en/"]www.site.com/en/[/url]" in case of multilanguage urls.

fn_define('MODE', '');
header("HTTP/1.0 301 Moved Permanently");
fn_redirect(fn_url("", 'C', 'rel', '&', CART_LANGUAGE), true);

}
}

I am finding that Google is seeing my under developed french section as a duplication in terms of SEO names and description, I understand I can change that but … for now i have completely disabled the French language section of my site.



My question is what will the SEO impact be of disabling my page will this resolve the /?=En … since there is only one enabled language will it still show up at that horrible extension…