XML sitemap structure for a movie website
I have a website for movies with page structure as follows:
- movie-1
- movie-1/comments
- movie-1/cast
I'm trying to create a dynamic sitemap for pages and it seems there are 2 options to achieve that.
Option 1
The first option is to create a sitemap that includes all movie pages and subpages.
<loc>
https://www.example.com/movies/movie-1
</loc>
<loc>
https://www.example.com/movies/movie-1/comments
</loc>
<loc>
https://www.example.com/movies/movie-1/cast
</loc>
<loc>
https://www.example.com/movies/movie-2
</loc>
<loc>
https://www.example.com/movies/movie-2/comments
</loc>
<loc>
https://www.example.com/movies/movie-2/cast
</loc>
Option 2
The second option is to keep separate each movies, comments and cast sitemaps.
movies.xml:
<loc>
https://www.example.com/movies/movie-1
</loc>
<loc>
https://www.example.com/movies/movie-2
</loc>
movie_comments.xml:
<loc>
https://www.example.com/movies/movie-1/comments
</loc>
<loc>
https://www.example.com/movies/movie-2/comments
</loc>
movie_cast.xml:
<loc>
https://www.example.com/movies/movie-1/cast
</loc>
<loc>
https://www.example.com/movies/movie-2/cast
</loc>
Question 1
In this case, what is the best option and which one should I choose?
Question 2
I'm using external TMDB images in this website. Should I also include images in sitemaps? If the answer is yes, should I include them all in movie related xml files(movies.xml, movie_comments.xml, movie_cast.xml)? Because all movie related pages have the same image. Or is it enough to include them only in the movies.xml file?
xml sitemap google-sitemap
add a comment |
I have a website for movies with page structure as follows:
- movie-1
- movie-1/comments
- movie-1/cast
I'm trying to create a dynamic sitemap for pages and it seems there are 2 options to achieve that.
Option 1
The first option is to create a sitemap that includes all movie pages and subpages.
<loc>
https://www.example.com/movies/movie-1
</loc>
<loc>
https://www.example.com/movies/movie-1/comments
</loc>
<loc>
https://www.example.com/movies/movie-1/cast
</loc>
<loc>
https://www.example.com/movies/movie-2
</loc>
<loc>
https://www.example.com/movies/movie-2/comments
</loc>
<loc>
https://www.example.com/movies/movie-2/cast
</loc>
Option 2
The second option is to keep separate each movies, comments and cast sitemaps.
movies.xml:
<loc>
https://www.example.com/movies/movie-1
</loc>
<loc>
https://www.example.com/movies/movie-2
</loc>
movie_comments.xml:
<loc>
https://www.example.com/movies/movie-1/comments
</loc>
<loc>
https://www.example.com/movies/movie-2/comments
</loc>
movie_cast.xml:
<loc>
https://www.example.com/movies/movie-1/cast
</loc>
<loc>
https://www.example.com/movies/movie-2/cast
</loc>
Question 1
In this case, what is the best option and which one should I choose?
Question 2
I'm using external TMDB images in this website. Should I also include images in sitemaps? If the answer is yes, should I include them all in movie related xml files(movies.xml, movie_comments.xml, movie_cast.xml)? Because all movie related pages have the same image. Or is it enough to include them only in the movies.xml file?
xml sitemap google-sitemap
add a comment |
I have a website for movies with page structure as follows:
- movie-1
- movie-1/comments
- movie-1/cast
I'm trying to create a dynamic sitemap for pages and it seems there are 2 options to achieve that.
Option 1
The first option is to create a sitemap that includes all movie pages and subpages.
<loc>
https://www.example.com/movies/movie-1
</loc>
<loc>
https://www.example.com/movies/movie-1/comments
</loc>
<loc>
https://www.example.com/movies/movie-1/cast
</loc>
<loc>
https://www.example.com/movies/movie-2
</loc>
<loc>
https://www.example.com/movies/movie-2/comments
</loc>
<loc>
https://www.example.com/movies/movie-2/cast
</loc>
Option 2
The second option is to keep separate each movies, comments and cast sitemaps.
movies.xml:
<loc>
https://www.example.com/movies/movie-1
</loc>
<loc>
https://www.example.com/movies/movie-2
</loc>
movie_comments.xml:
<loc>
https://www.example.com/movies/movie-1/comments
</loc>
<loc>
https://www.example.com/movies/movie-2/comments
</loc>
movie_cast.xml:
<loc>
https://www.example.com/movies/movie-1/cast
</loc>
<loc>
https://www.example.com/movies/movie-2/cast
</loc>
Question 1
In this case, what is the best option and which one should I choose?
Question 2
I'm using external TMDB images in this website. Should I also include images in sitemaps? If the answer is yes, should I include them all in movie related xml files(movies.xml, movie_comments.xml, movie_cast.xml)? Because all movie related pages have the same image. Or is it enough to include them only in the movies.xml file?
xml sitemap google-sitemap
I have a website for movies with page structure as follows:
- movie-1
- movie-1/comments
- movie-1/cast
I'm trying to create a dynamic sitemap for pages and it seems there are 2 options to achieve that.
Option 1
The first option is to create a sitemap that includes all movie pages and subpages.
<loc>
https://www.example.com/movies/movie-1
</loc>
<loc>
https://www.example.com/movies/movie-1/comments
</loc>
<loc>
https://www.example.com/movies/movie-1/cast
</loc>
<loc>
https://www.example.com/movies/movie-2
</loc>
<loc>
https://www.example.com/movies/movie-2/comments
</loc>
<loc>
https://www.example.com/movies/movie-2/cast
</loc>
Option 2
The second option is to keep separate each movies, comments and cast sitemaps.
movies.xml:
<loc>
https://www.example.com/movies/movie-1
</loc>
<loc>
https://www.example.com/movies/movie-2
</loc>
movie_comments.xml:
<loc>
https://www.example.com/movies/movie-1/comments
</loc>
<loc>
https://www.example.com/movies/movie-2/comments
</loc>
movie_cast.xml:
<loc>
https://www.example.com/movies/movie-1/cast
</loc>
<loc>
https://www.example.com/movies/movie-2/cast
</loc>
Question 1
In this case, what is the best option and which one should I choose?
Question 2
I'm using external TMDB images in this website. Should I also include images in sitemaps? If the answer is yes, should I include them all in movie related xml files(movies.xml, movie_comments.xml, movie_cast.xml)? Because all movie related pages have the same image. Or is it enough to include them only in the movies.xml file?
xml sitemap google-sitemap
xml sitemap google-sitemap
edited Dec 2 '18 at 6:21
Mateusz Konieczny
82011231
82011231
asked Nov 22 '18 at 23:41
Okan GunerOkan Guner
378
378
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Answer 1
I would go with the one file solution since only search engines are interested in it (must not be human readable) and it is just one file to care about.
Answer 2
According to https://www.sitemaps.org/protocol.html#xmlTagDefinitions there is way to specify additional media in the protocol. You can only link thinks from your domain anyway (https://www.sitemaps.org/protocol.html#location).
https://www.sitemaps.org/ is in my opinion a good resource for this topic.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53439137%2fxml-sitemap-structure-for-a-movie-website%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Answer 1
I would go with the one file solution since only search engines are interested in it (must not be human readable) and it is just one file to care about.
Answer 2
According to https://www.sitemaps.org/protocol.html#xmlTagDefinitions there is way to specify additional media in the protocol. You can only link thinks from your domain anyway (https://www.sitemaps.org/protocol.html#location).
https://www.sitemaps.org/ is in my opinion a good resource for this topic.
add a comment |
Answer 1
I would go with the one file solution since only search engines are interested in it (must not be human readable) and it is just one file to care about.
Answer 2
According to https://www.sitemaps.org/protocol.html#xmlTagDefinitions there is way to specify additional media in the protocol. You can only link thinks from your domain anyway (https://www.sitemaps.org/protocol.html#location).
https://www.sitemaps.org/ is in my opinion a good resource for this topic.
add a comment |
Answer 1
I would go with the one file solution since only search engines are interested in it (must not be human readable) and it is just one file to care about.
Answer 2
According to https://www.sitemaps.org/protocol.html#xmlTagDefinitions there is way to specify additional media in the protocol. You can only link thinks from your domain anyway (https://www.sitemaps.org/protocol.html#location).
https://www.sitemaps.org/ is in my opinion a good resource for this topic.
Answer 1
I would go with the one file solution since only search engines are interested in it (must not be human readable) and it is just one file to care about.
Answer 2
According to https://www.sitemaps.org/protocol.html#xmlTagDefinitions there is way to specify additional media in the protocol. You can only link thinks from your domain anyway (https://www.sitemaps.org/protocol.html#location).
https://www.sitemaps.org/ is in my opinion a good resource for this topic.
edited Nov 29 '18 at 15:21
answered Nov 29 '18 at 15:13
ǝlpoodooɟƃuooʞǝlpoodooɟƃuooʞ
928
928
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53439137%2fxml-sitemap-structure-for-a-movie-website%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown