Currently when a request is made for path on va.gov like this one "https://www.va.gov/education/how-to-apply" there is a rewrite of the url to make it "https://www.va.gov/education/how-to-apply/" because that route is what serves the index.hml file that mimics the look of a path based site.
The rewrite, which is also a redirect, should return a 301 "permanently moved" not a 302 "temporary move". This does have some SEO impact and also triggers some semi-false alarms in some site scanning tools.
[ ] Attached to a Milestone (when will this be completed?)
[ ] Attached to an Epic (what body of work is this a part of?)
[ ] Labeled with Team (product support, analytics-insights, operations, service-design, Console-Services, tools-fe)
[ ] Labeled with Practice Area (backend, frontend, devops, design, research, product, ia, qa, analytics, contact center, research, accessibility, content)
[ ] Labeled with Type (bug, request, discovery, documentation, etc.)
Issue Description
Currently when a request is made for path on va.gov like this one "https://www.va.gov/education/how-to-apply" there is a rewrite of the url to make it "https://www.va.gov/education/how-to-apply/" because that route is what serves the index.hml file that mimics the look of a path based site. The rewrite, which is also a redirect, should return a 301 "permanently moved" not a 302 "temporary move". This does have some SEO impact and also triggers some semi-false alarms in some site scanning tools.
Currently it returns a 302
Related Slack thread
Tasks
Acceptance Criteria
[ ] Visiting a path via a request without a trailing slash ( "https://www.va.gov/education/how-to-apply"), should result in a 301 response as the path is rewritten to include the slash ( "https://www.va.gov/education/how-to-apply/").
How to configure this issue
product support
,analytics-insights
,operations
,service-design
,Console-Services
,tools-fe
)backend
,frontend
,devops
,design
,research
,product
,ia
,qa
,analytics
,contact center
,research
,accessibility
,content
)bug
,request
,discovery
,documentation
, etc.)