I have a slightly different .htaccess problem…
I’m setting up a second WP installation on an AddOn domain and trying to configure .htaccess to eliminate duplicate content issues. My goal is to prevent people (and search engines) from accessing the site from any of these options:
addon.primary.com
www.addon.primary.com
primary.com/addon
www.primary.com/addon
I’ve been using the code found in these two articles:
https://helpdesk.bluehost.com/index.php/kb/article/000498
https://helpdesk.bluehost.com/index.php/kb/article/000134
and have tried EVERYTHING I can think of with not luck! One is designed to prevent the subdirectory approach and the other the subdomain angle.
I can intermittently get the redirects to work, but it always blocks me out of my login page.
Any advice would be GREATLY appreciated!
PS, I’ve also noticed that the code that forces the 404 (above) has a habit of breaking the theme of the blog… not sure why!!! help!! ??