Rewrite Rule for a specific page
Hi,
I need to redirect a specific page to the home page(root domain).
The current redirect for the home page that's below is working fine: Whenever I hot the domain https://www.domain.com serves the page
## Home Page
RewriteRule ^/?$ /content/appname/us/en/home.html [PT,L]
## Rewrite rules for US site root pages
RewriteRule ^/content/appname/us/en/home/(.*).html$ /$1 [R=301,L]
There are a bunch of pages that are using Core Breadcrumb component and it follows the structure of:
Home > Devices > DeviceName
When Clicking on Home it should redirect to the root (#) instead it is trying to direct to /content/appname/us/en/home.html and in turn is throwing a 404
I added the below rule to redirect to the root (#) but still no luck
## Rewrite rule for Home Page
RewriteRule /content/appname/us/en/home.html ^/$ [R=301,L]
Can someone suggest how the vice-versa of the below should be working
## Home Page
RewriteRule ^/?$ /content/appname/us/en/home.html [PT,L]