Vanity urls are not working if it starts with specific prefix
Hello Everyone,
1. Our project structure is like /content/project-name/home is the root path and inside this there are 4 parent level pages like product1, product2, product3 etc.
2. For one of the page inside /content/project-name/home/product1 say /content/project-name/home/product1/sample-page, our authoring team is using vanity url like this: /product1/product-feature/investment/planning (this page was created earlier and later it deleted/moved. But still they want the reference/bookmark to work as is and thats why they are setting /product1/product-feature/investment/planning as vanity url for above sample page)
3. When we access a page with this vanity : host/product1/product-feature/investment/planning
its going to 404 page. This is because its conflicting with our redirect rule which we have written for content resolution:
RewriteCond %{REQUEST_URI} ^/(product1|product2|product3)(.*)
RewriteRule ^/(.*)$ /content/${CONTENT_FOLDER_NAME}/home/${tolower:$1}.html [PT,L]
4. Out authoring team is expecting that this vanity: /product1/product-feature/investment/planning should point to /content/project-name/home/product1/sample-page which is not working
5. We suggested them to add rewrite rules for such cases but they are not agree with this as adding rewrite rule will need frequent deployment.
We are not sure if this is correct way of adding such long vanity urls for any deleted or moved pages. Please guide us on recommended way of using vanity urls. @aanchal-sikka @arunpatidar