Sitemap Issue With Https

Have you noticed that the sitemap addon have issue generating regular http links?

yes, after switching to full https

Our experiences…





If you don't fix this you'll be telling search engines not to index you…

Indexing Changes

remove the following line





in the following files.

/design/themes/basic/templates/addons/seo/addons/hooks/meta.post.tpl

/var/themes_repository/basic/templates/addons/seo/hooks/index/meta.post.tpl

/var/themes_repository/responsive/templates/addons/seo/hooks/index/meta.post.tpl



And if your using the SEO add-on add the following to your robots.txt

this will stop indexing of your cart and checkout pages.


Disallow: /index.php




Also fix the sitemap generation…

Open the app/addons/google_sitemap/func.php and replace:


if (count($languages) == 1) {
$links[] = fn_url($link, 'C', 'http', CART_LANGUAGE);
} else {
foreach ($languages as $lang_code => $lang) {
$links[] = fn_url($link . '&sl=' . $lang_code, 'C', 'http', $lang_code);
}
}



With this


if (count($languages) == 1) {
$links[] = fn_url($link, 'C', 'https', CART_LANGUAGE);
} else {
foreach ($languages as $lang_code => $lang) {
$links[] = fn_url($link . '&sl=' . $lang_code, 'C', 'https', $lang_code);
}
}


And


$location = Registry::get('config.http_location');


with


$location = Registry::get('config.https_location');

why didn't you changed this line [color=#000088][size=2] to[/size][/color]



[color=#000088][size=2][/size][/color]





[color=#000088][size=2]???[/size][/color]

Thanks for the info on the sitemap but when I change the func.php in addons>google sitemap, the sitemap generates https links but does not generate seo friendly urls in the sitemap. mIt reverts to no seo friendly, do you have the same problem.



John

I hope you have edited your func.php file and not copied this text above. Replace only http with https… do you have multilingual store?

this line needs to be restored … it keeps /index.php?blsgsgs pages from beeing indexed…





[color=#000088][/color]

[quote name='demeldoo' timestamp='1420040197' post='201399']

this line needs to be restored … it keeps /index.php?blsgsgs pages from beeing indexed…





[color=#000088][/color]

[/quote]



Yeah restore that line and none of your pages will be indexed…



Change the line to this







And then add this to your robots.txt This will prevent indexing of your cart and other non essential pages…


Disallow: /index.php




And, this is only if you are using the SEO addon…

I asked CS to investigate this and the answer they came back with was



Dear John

[color=#555555]As regards the line:[/color]





[color=#555555]you should not remove it. If you remove it additionally to the modification of the[/color]addons/seo/func.php[color=#555555] file, the pages that should not be indexed (for example, checkout) will have no the [/color]noindex, nofollow[color=#555555] attributes[/color][color=#555555] [/color]

i told you so :P

[quote name=‘demeldoo’ timestamp=‘1420720593’ post=‘201954’]

i told you so :P

[/quote]



yeah but I thought that was the supposed idea anyway…to NOT have those noindexed, so what am I misunderstanding

don't worry…restore it back and remove the robots.txt modification…

Just another query on this.

When in webmaster tools and submitting a url, the “fetch” now shows as redirected, fine…but the

downloaded http response shows a 302 . I assume it should be a 301 redirect to get the link juice, or am I wrong, and how should i change it to 301?

see attached

rewrite rule done by CS staff was

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.hivis.co.uk/$1 [R,L,NE]




I changed the rewrite to RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.hivis.co.uk/$1 [R=301,L,NE]




and now webmaster tools is showing moved permanently. My questions are



is this the correct way, and if it is , then why did CS-cart staff do it the other way. I have since learned that if no specification, i.e. 301 or 302 is used in the rewrite rule then search engines always assume its a 302, thus losing the link juice. So to get a 301 you must specify a 301.



my other question is, Google had already crawled a S**t load of my http tpages to temp https (302) pages… will i get the link juice now I am telling it 24 hours later to 301 the found https 302 to https301 and in effect the old http link juice is already gone.

If thats the case then its a pisser as I got CS Cart to implement these rules.



See comment from seo hacker site

The redirected page will still retain its PageRank, MozRank, Page Authority and Traffic Value – and the detour page will not accumulate any. It’s quite dangerous to use a 302 redirect by mistake. It will really hurt your site’s search engine visibility.


Thanks

John

http.JPG

http2.JPG

Confirmed, seee Http To Https Redirect Whole Site Be Aware - SEO - CS-Cart Community Forums



But I have now seen google list only 308 links from 3288 submitted, where as previously all were submitted, is this just because its waiting to crawl all the https.



Thanks

John

I am confused -



Do i need to remove this link -

[color=#000088][/color]



or do i need to replace the above line with -

[color=#000088][/color]

Also confirm if this needed to be added to robot.txt file?



as i am using SEO and https links



[color=#660066]Disallow[/color][color=#666600]:[/color][color=#000000] [/color][color=#666600]/[/color][color=#000000]index[/color][color=#666600].[/color][color=#000000]php[/color]

finally they suggested to remove the line… you can add some lines to robots.txt… my sugestion is use index.php?*

[quote name='demeldoo' timestamp='1422976037' post='204189']

finally they suggested to remove the line… you can add some lines to robots.txt… my sugestion is use index.php?*

[/quote]



What do you mean “Finally they suggest” They have suggested this from the beginning… Only you have been fighting this…

And yes the robot.txt file needs to be changed… [color=#660066]Disallow[/color][color=#666600]:[/color][color=#000000] [/color][color=#666600]/[/color][color=#000000]index[/color][color=#666600].[/color][color=#000000]php[/color] if you are using the SEO addon… Ths prevents the indexing of your cart and checkout pages…

so what about cs cart response as below then, any clarification from cs cart !!



[color=#000000]As regards the line:[/color]





[color=#000000]you should not remove it. If you remove it additionally to the modification of the [/color]addons/seo/func.php[color=#000000] file, the pages that should not be indexed (for example, checkout) will have no the [/color]noindex, nofollow[color=#000000] attributes.[/color]



[color=#000000]Thank you.[/color]


[color=#747C83]Sincerely yours,[/color]

[color=#747C83]Timur Mestan-zade[/color]

[color=#747C83]Technical support engineer[/color]