{"id":240,"date":"2024-05-05T09:09:04","date_gmt":"2024-05-05T09:09:04","guid":{"rendered":"https:\/\/worldseotool.com\/?page_id=240"},"modified":"2024-05-05T09:09:04","modified_gmt":"2024-05-05T09:09:04","slug":"sitemap-generator","status":"publish","type":"page","link":"https:\/\/shoptips24.com\/tools\/sitemap-generator\/","title":{"rendered":"Sitemap Generator"},"content":{"rendered":"\n\n    <style>\n        \n        }\n        .container {\n            max-width: 600px;\n            margin: 0 auto;\n            background-color: white;\n            padding: 20px;\n            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);\n            border-radius: 5px;\n        }\n        h2 {\n            color: #333;\n        }\n        label {\n            display: block;\n            margin-bottom: 5px;\n            color: #555;\n        }\n        input {\n            width: 100%;\n            padding: 8px;\n            margin-bottom: 10px;\n            box-sizing: border-box;\n        }\n        button {\n            background-color: #4CAF50;\n            color: white;\n            padding: 10px 15px;\n            border: none;\n            cursor: pointer;\n            width: 100%;\n        }\n        button:hover {\n            background-color: #45a049;\n        }\n        textarea {\n            width: 100%;\n            height: 200px;\n            margin-top: 10px;\n            box-sizing: border-box;\n        }\n        #robotsTitle {\n            display: block;\n            color: #333;\n            margin-top: 20px;\n        }\n        #robotsTxt {\n            display: block;\n            width: 100%;\n            height: 200px;\n            margin-top: 10px;\n            box-sizing: border-box;\n        }\n    <\/style>\n\n<body>\n\n    <div class=\"container\">\n        <h2>Sitemap Generator<\/h2>\n\n        <label for=\"url\">Enter your domain:<\/label>\n        <input id=\"url\" placeholder=\"https:\/\/example.com\" type=\"text\" \/>\n\n        <button onclick=\"generateSitemap()\">Generate Sitemap<\/button>\n\n        <h3 id=\"robotsTitle\" style=\"display: none;\">Robots.txt Content:<\/h3>\n        <textarea id=\"robotsTxt\" readonly=\"\" style=\"display: none;\"><\/textarea>\n    <\/div>\n\n    <script>\n        function generateSitemap() {\n            var domain = document.getElementById('url').value.trim();\n\n            if (domain !== '') {\n                var robotsTxtContent = `User-agent: *\nDisallow: \/search\nAllow: \/\n\nSitemap: ${domain}atom.xml?redirect=false&start-index=1&max-results=500`;\n\n                document.getElementById('robotsTxt').value = robotsTxtContent;\n                document.getElementById('robotsTitle').style.display = 'block';\n                document.getElementById('robotsTxt').style.display = 'block';\n            } else {\n                alert('Please enter a valid URL.');\n            }\n        }\n    <\/script>\n<\/body><div class=\"separator\" style=\"clear: both; text-align: center;\"><a href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEi5an7s6MQrFue8cV4I9Kc2M9bWDv7o1hLOybEWtkDt6SnX_eTQRKQbLuUs_qVE3rdb3DrOKPfwsb5Xu9YhxV5TrwJNV7aL7uu6GVP4kDFdypYCPv2xgYsCra6Sz7lNT7EbV5RL2dEapfPKOjbI_6sBnCl5wDzB4WQwhEYXo6S-Wfq88BhgKneH8mci0HI\/s512\/sitemap.png\" imageanchor=\"1\" style=\"margin-left: 1em; margin-right: 1em;\"><img fetchpriority=\"high\" decoding=\"async\" border=\"0\" data-original-height=\"512\" data-original-width=\"512\" height=\"320\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEi5an7s6MQrFue8cV4I9Kc2M9bWDv7o1hLOybEWtkDt6SnX_eTQRKQbLuUs_qVE3rdb3DrOKPfwsb5Xu9YhxV5TrwJNV7aL7uu6GVP4kDFdypYCPv2xgYsCra6Sz7lNT7EbV5RL2dEapfPKOjbI_6sBnCl5wDzB4WQwhEYXo6S-Wfq88BhgKneH8mci0HI\/s320\/sitemap.png\" width=\"320\" \/><\/a><\/div><br \/>\n","protected":false},"excerpt":{"rendered":"<p>Sitemap Generator Enter your domain: Generate Sitemap Robots.txt Content:<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-240","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/pages\/240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/comments?post=240"}],"version-history":[{"count":0,"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/pages\/240\/revisions"}],"wp:attachment":[{"href":"https:\/\/shoptips24.com\/tools\/wp-json\/wp\/v2\/media?parent=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}