- Joined
- Nov 15, 2019
- Messages
- 8
- Likes
- 4
- Degree
- 0
Hi all,
I am hoping to get some assistance with creating an effective htaccess redirect please.
The situation is that I am redirecting site B to site A. Not all URL's are the same so I have created the redirects on a URL by URL basis.
Here is what I am using:
These redirects are working fine but the problem I am having is that because the root domain of website b has backlinks pointing to the non-https version, I have a little redirect chain going:
I also tried the following format to avoid the above issue:
But was unsure how to add in the root domain to root domain redirect without messing up the rest.
Any assistance would be greatly appreciated!
I am hoping to get some assistance with creating an effective htaccess redirect please.
The situation is that I am redirecting site B to site A. Not all URL's are the same so I have created the redirects on a URL by URL basis.
Here is what I am using:
Code:
Redirect 301 / https://websitea.com
Redirect 301 /page-from-website-b https://websitea.com/page-from-website-a
Redirect 301 /category-without-category-in-permalink https://websitea.com/category/similar-category-on-site-a
These redirects are working fine but the problem I am having is that because the root domain of website b has backlinks pointing to the non-https version, I have a little redirect chain going:
Code:
http://websiteb.com --> https://websiteb.com --> https://websitea.com
I also tried the following format to avoid the above issue:
Code:
RewriteRule ^page-from-website-b[/]?$ https://websitea.com/page-from-website-a [R=301,L]
But was unsure how to add in the root domain to root domain redirect without messing up the rest.
Any assistance would be greatly appreciated!