H
H
hckn2019-04-08 16:39:26
Google
hckn, 2019-04-08 16:39:26

Slash in the canonical, but no slash in the sitemap — ok?

In the canonicals, all urls come with a slash at the end of
http://example.com/
http://example.com/hello/
A in the sitemap without.
http://example.com
http://example.com/hello
As I understand it, with a slash it is more correct, at least no matter who I look at, everyone has a slash. What if there is such a discrepancy? Rewrite sitemap?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
S
Stalker_RED, 2019-04-08
@hckn

I understand with a slash it's more correct,
why would?
Depends on the situation:
http://example.com/movies/- this is a section (directory), more correctly with a slash, but nothing will explode without it (if the server is configured accordingly)
http://example.com/robots.txt/- it will be 404, because this is a file.
Google Webmaster Central Blog
Official news on crawling and indexing sites for the Google index
https://webmasters.googleblog.com/2010/04/to-slash...

P
Puma Thailand, 2019-04-08
@opium

Of course rewrite

A
Alexander Denisov, 2019-04-09
@Grinvind

Rewrite and check redirects from pages without a slash to pages with a slash, because 404s can come out.

X
xmoonlight, 2017-02-04
@xmoonlight

Dataobject.dataRow.keys[0]
Dataobject.dataRow.keys['name']

J
Jony1337, 2017-02-04
@Jony1337

json decode and put it all into an array

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question