Skip to content

Commit

Permalink
Update route.js
Browse files Browse the repository at this point in the history
  • Loading branch information
SH20RAJ authored Apr 1, 2024
1 parent 59c476c commit 46362e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/sitemapsh/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function GET(req) {
let xml = '<?xml version="1.0" encoding="UTF-8"?>';
xml += '<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';

for (let i = 0; i < 1001; i++) {
for (let i = 1; i < 1001; i++) {
xml += "<sitemap>";
xml += `<loc>${url.origin}/sitemapsh/${i || Math.floor(Math.random()*1000)}</loc>`; // Modify URL structure as needed
xml += "</sitemap>";
Expand Down

0 comments on commit 46362e7

Please sign in to comment.