Hello, im trying to cloack affiliate links with this script Ive replaced the affiliate link with my own, added the php file to the root directory but when i try to visit www.site.com/xxxx.php I get a 404 error file. The file is in the directory, the permissions are good and the file names are the same but it is still not working. Can anyone help me out, am i missing something?
your code looks good to me. are you getting the 404 from your page, or from the page it redirects to?
Fixed it to something easier like abcd.php, its now working but i get this error Parse error: syntax error, unexpected ':' I am using this as a test <?php header(“location: http://www.test.comâ€); ?>
you need to use regular double quotes: try this: <?php header("location: http://www.test.com"); ?> Code (markup):