So, the debug code I sent you had the actual redirect commented out with “//”.
This was so you could see which flow your tests had. So, it appears it is working as it should.
Now, just have to figure out why your redirect is not working correctly.
Most likely is it the LOCATION : that is set. The page with the code that we posted is in the same folder on the site as the redirected page? If not, you have to change the LOCATION to point at the path and file. Also, the name of the location is capital-sensitive. So, freepagesignup.php is not the same as Freepagesignup.PHP…
So, remove the // before the LOCATION line to remove the commented out… And, if it does not work, tell me the folder names of where each of these files are located. To back up one level of folders on a site you use “…/” to back up two levels use “…/…/”… So, if the current page is in the root of the site and the free page is in the same root, then it should work. If the free page is inside a folder inside the root, let’s say called freepages, then the location would be LOCATION : freepages/freepagesignup.php …
If the current page is inside a folder, let say notfree and the free page is inside a folder call freepages, then, first you back up to the root and then point to the correct folder. Something like:
LOCATION : …/freepages/freepagesignup.php … This backs up one folder and goes into folder freepages and then to the file…
So, without knowing your site’s folder layout, that is all I can cover about it. Hope it helps…