I have created a Parent Page with the URL example.com/service/ and a Child Page with the URL example.com/service/service-name/. However, when I remove the /service/ part and hit the enter button, my Child Page does not redirect to the Parent Page. Instead, the URL changes to example.com/service-name/, which is incorrect for my needs. I want the URL to remain as example.com/service/service-name/ even if someone tries to access example.com/service-name/.
Instead of redirecting to the correct URL, the shortened URL example.com/service-name/ remains unchanged and does not lead to the expected Child Page under the Parent Page. This results in an incorrect URL structure for my website.
Zari Khan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.