I have implemented this change to .htaccess.
RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.)?stakeholdermap\.com$ [NC] RewriteRule ^(.*)$ https://www.stakeholder-map.com/$1 [L,R=301]
stakeholdermap.com/stakeholder-definition.html resolves to stakeholder-map.com/stakeholder-definition.html.
But https://www.stakeholdermap.com/project-management/project-monitoring-and-control.html goes to https://www.stakeholder-map.com/home/stakehol/public_html/project-management/project-monitoring-and-control.html. I have checked for clashes on CF and there isn't anything.
Using just Redirect 301 / https://www.stakeholder-map.com/ works for first level pages, but I get: This site can’t be reached
The webpage at https://www.stakeholdermap.com/project-templates/excel-project-plan.html might be temporarily down or it may have moved permanently to a new web address.
ERR_HTTP2_PROTOCOL_ERROR
How do I get pages in subfolders to redirect correctly?
Redirect 301 / https://www.stakeholder-map.com/
works for first level pages" - it should work for everything; but if you have both domains pointing to the same webspace, and not made this dependent on the originally requested host name, this will of course cause a redirect loop.RewriteRule . https://www.stakeholder-map.com/%{REQUEST_URI} [L,R=301]
changes anything. (Keep the rest, the RewriteEngine & RewriteCond statements. And test in a private browser window, otherwise already cached faulty 301 redirects might fool you.)