Skip to content

Parent 301 Redirect for Child Pages

Issue Description

With a standard 301 redirect to a parent page, the child pages are also redirected with varying degrees of success.

For example, we want to redirect /who-we-are/other/ to /who-we-are/ but we want to keep the child pages of /who-we-are/other/ in that URL structure. Using a standard 301 the resulting URL, from something like /who-we-are/other/child-page/ would be /who-we-are/child-page/.

Code Snippets

Redirect 301    /who-we-are/other/    /who-we-are/

Affected Browsers

  • all

Issue Type

Fixed Code Snippets

RedirectMatch 301    /who-we-are/other/?$    /who-we-are/

Back to Issues List