{"id":20489893,"url":"https://github.com/gen-x-coder/sitemap-admin","last_synced_at":"2026-04-18T12:36:42.600Z","repository":{"id":259757029,"uuid":"879360469","full_name":"gen-x-coder/sitemap-admin","owner":"gen-x-coder","description":"Robots.txt and sitemap.xml generator","archived":false,"fork":false,"pushed_at":"2024-11-06T08:06:38.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T17:18:14.353Z","etag":null,"topics":["robots-txt","seo-optimization","sitemap-generator","xml-sitemap"],"latest_commit_sha":null,"homepage":"https://www.dutchwhite.nl/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gen-x-coder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-27T17:44:33.000Z","updated_at":"2024-11-06T08:09:37.000Z","dependencies_parsed_at":"2024-10-27T21:12:34.644Z","dependency_job_id":"3f4f75ed-5f8c-4073-b796-17e99633d533","html_url":"https://github.com/gen-x-coder/sitemap-admin","commit_stats":null,"previous_names":["gen-x-coder/sitemap-admin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gen-x-coder/sitemap-admin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gen-x-coder%2Fsitemap-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gen-x-coder%2Fsitemap-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gen-x-coder%2Fsitemap-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gen-x-coder%2Fsitemap-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gen-x-coder","download_url":"https://codeload.github.com/gen-x-coder/sitemap-admin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gen-x-coder%2Fsitemap-admin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31969769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["robots-txt","seo-optimization","sitemap-generator","xml-sitemap"],"created_at":"2024-11-15T17:14:43.473Z","updated_at":"2026-04-18T12:36:42.581Z","avatar_url":"https://github.com/gen-x-coder.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Sitemap \u0026 robots.txt Generator\n\nA powerful PHP script that automatically generates SEO-friendly sitemap.xml and robots.txt files by scanning your website's directory structure. Features an intuitive admin interface for customizing which pages to include or exclude.\n\n## 🌟 Key Features\n\n### Directory Scanning\n- Recursively scans your `public_html` folder\n- Automatically excludes common non-web files (php, txt, images, etc.)\n- Creates organized tree structure of files and directories\n\n### Admin Interface\n- User-friendly checkboxes for each file and directory\n- Granular control with include/exclude options\n- Convenient Select All/Deselect All functionality\n- Session-based settings persistence\n\n### Sitemap Generation\n- Standards-compliant XML sitemap creation\n- Automatic `lastmod` dates based on file modifications\n- Intelligent priority assignments:\n  - Homepage: 1.0\n  - Other pages: 0.8\n- URL encoding for spaces and special characters\n\n### robots.txt Generation\n- Automatic robots.txt file creation\n- Includes sitemap location reference\n- Configurable Disallow rules for excluded paths\n- Default Allow rules for included content\n\n### SEO Optimizations\n- Search engine optimized XML formatting\n- Smart priority weighting system\n- Fresh content indicators with last modified dates\n- Homepage prioritization\n- Proper URL encoding for all entries\n\n## 📋 Installation \u0026 Usage\n\n1. Create a new file (e.g., `sitemap-admin.php`) and paste the script code\n2. Set up authentication:\n   - Change the password from admin to something you like\n3. Access the admin interface through your browser\n4. Select/deselect files and folders as needed\n5. Click \"Generate Sitemap \u0026 robots.txt\"\n\n## 🚀 SEO Best Practices\n\n### Submit Your Sitemap\n1. Create a Google Search Console account\n2. Add and verify your website ownership\n3. Submit your sitemap URL: `yourdomain.com/sitemap.xml`\n\n### Optimize Your Homepage\nAdd these meta tags to your static homepage:\n```html\n\u003cmeta name=\"description\" content=\"Your site description\"\u003e\n\u003cmeta name=\"keywords\" content=\"relevant, keywords, here\"\u003e\n\u003cmeta name=\"robots\" content=\"index, follow\"\u003e\n```\n\n## 💡 Advanced SEO Recommendations\n\nConsider implementing these additional SEO enhancements:\n- Schema.org markup for rich search results\n- Canonical URLs for duplicate content management\n- XML sitemap index for large-scale websites\n- Mobile-responsive design optimization\n\n## 📝 Notes\n\n- Ensure proper file permissions for writing sitemap.xml and robots.txt\n- Regularly update your sitemap as your content changes\n- Monitor Google Search Console for crawl errors\n- Test your sitemap validity using online tools\n\n## 🔒 Security\n\n- Always implement proper authentication for the admin interface\n- Restrict access to sensitive directories\n- Regularly update your PHP version\n- Monitor access logs for suspicious activity\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgen-x-coder%2Fsitemap-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgen-x-coder%2Fsitemap-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgen-x-coder%2Fsitemap-admin/lists"}