Skip to content

[SD-1452] Add 301 redirect for site-prefixed URLs#760

Open
vincent-gao wants to merge 1 commit intodevelopfrom
feature/SD-1452-redirect-site-based-page
Open

[SD-1452] Add 301 redirect for site-prefixed URLs#760
vincent-gao wants to merge 1 commit intodevelopfrom
feature/SD-1452-redirect-site-based-page

Conversation

@vincent-gao
Copy link
Copy Markdown
Contributor

Jira

https://digital-vic.atlassian.net/browse/SD-1452

details

  • /site-{id}/... path aliases are valid Drupal routes but should not appear in search engine results.
  • Added an EventSubscriber that 301 redirects anonymous requests from /site-{id}/... to the clean alias path (without the prefix)
  • Logged-in CMS users are not affected (detected via Drupal session cookie)
  • API requests (JSON API, Tide API) are not affected

Add 301 redirect for site-prefixed URLs to prevent search engine indexing
@vincent-gao vincent-gao force-pushed the feature/SD-1452-redirect-site-based-page branch from 4bb5d96 to 38d63e1 Compare March 31, 2026 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant