Pro not redirecting from SSL to http

When a purchase is made I want it to redirect to my custom thank you page.
This works when I purchase on http://www.domain.com. It redirects to http://www.domain.com/ty.html
However, when I purchase on https://domain.secureserver.com it only gives me a response on the same payment page saying "payment complete and login" (or something like that).
How do I fix this issue?
Thanks so much!
This works when I purchase on http://www.domain.com. It redirects to http://www.domain.com/ty.html
However, when I purchase on https://domain.secureserver.com it only gives me a response on the same payment page saying "payment complete and login" (or something like that).
How do I fix this issue?
Thanks so much!