I currently have in my .htaccess:
RewriteRule ^$ http://chfmaine.com/ [CO=moved:yes:chfmaine.com:1/,R=301,NE,NC,L]
I was basing this off of this post.
That's a lot more than I need but the setting of the cookie should be the same. Maybe I am misunderstanding the domain part of the cookie. If I set it to
CHFmaine.com shouldn’t that be where it works?
I tried adding the cookie after the 301. Ether way the 301 works but no cookie is passed. This is redirecting from
chfmaine.com. I have 23 of these for all the different pages that were on the old site. Anything landing at this
.htaccess will be redirected and the cookie should be set. So if there is a way to first pass the cookie to anyone then proceed onto the matching rewrite that would be helpful. But if I can get this way to work I dont mind using copy and paste to get it on all the possibilities. and I do not want to pass any queries in the URL.
My question is, what am I doing wrong here? Why can I not find this cookie after a successful redirect? And is there a better option?