feat(seo): add SEO controller for robots.txt and sitemap.xml
- Implemented SeoController with methods for serving robots.txt and sitemap.xml. - Updated robots.txt logic to disallow access to /admin and /api paths. - Enhanced meta tags and Open Graph data in home.html.twig for better SEO. - Added X-Robots-Tag header in SecurityHeadersSubscriber for /admin and /api routes.
This commit is contained in:
@@ -1570,8 +1570,8 @@
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"src/Shared/EventSubscriber/SecurityHeadersSubscriber.php": {
|
||||
"mtime": 1781946833.720618,
|
||||
"ast_hash": "b95292f604fa2b37dbb416c257343b64",
|
||||
"mtime": 1782672841.0804546,
|
||||
"ast_hash": "57d66396929ab5b7823859143ec1f563",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"src/Shared/Exception/AppException.php": {
|
||||
@@ -3273,5 +3273,10 @@
|
||||
"mtime": 1782410984.7928963,
|
||||
"ast_hash": "913a9ec57dd96b9d1fcead197e25e71b",
|
||||
"semantic_hash": ""
|
||||
},
|
||||
"src/Shared/Controller/SeoController.php": {
|
||||
"mtime": 1782672834.274309,
|
||||
"ast_hash": "7b148f2bee655e2b1e70adf6476b5598",
|
||||
"semantic_hash": ""
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user