Reputation: 11
I abc have a emailme form at php non supported website as for assumption (xyz.com) , i hosted a php file at a subdomain say (123.com) to look my website as for assumption as (abc.123.com)., its working fine , but how do i redirect from that php file at (abc.123.com) to my than-you page at xyz.com?
Any solutions? , thanks in advance and awaiting kind replies.
to be more specific
in my form i included web address as
urlWebsite = "abc.xyz.com"
and in php file i included header location as
Header('Location:'. $_POST['urlWebsite'].'/p/thank-you.html')
any ideas?
Upvotes: 0
Views: 72
Reputation: 39704
You need to pass the scheme too, http
or https
:
header('Location: http://'. $_POST['urlWebsite'].'/p/thank-you.html');
die;
Upvotes: 2