I want to have people who read my articles at the directories, be redirected to my affiliate offers, instead of going to my blogs. I found two redirect codes, and spent the whole night trying to get them to work, with no success. I was told to put the code in the index.php file, and I assume that would be the one in the public_html folder, because there is also one in the wp-content folder.
Need Serious Help With Redirect Code
8
I want to have people who read my articles at the directories, be redirected to my affiliate offers, instead of going to my blogs. I found two redirect codes, and spent the whole night trying to get them to work, with no success.
I was told to put the code in the index.php file, and I assume that would be the one in the public_html folder, because there is also one in the wp-content folder.
I tried it in both with no success. If I put the code in the index.php file in the public_html folder, my site disappears, and I get syntax errors.
If I put it in the index.php file in the wp-content folder, nothing happens. I am not sure what is wrong, but I am out of options.
I have tried putting the code above and below the existing code that is already in those files.
Here are the two codes I have
Thanks Glenn
<?
Header ( "HTTP/1.1 301 Moved Permanently" );
Header ( "Location: http://clickbankid.merchant.hop.clickbank.net" );
?>
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://clickbankid.merchant.hop.clickbank.net");
exit();
?>
I was told to put the code in the index.php file, and I assume that would be the one in the public_html folder, because there is also one in the wp-content folder.
I tried it in both with no success. If I put the code in the index.php file in the public_html folder, my site disappears, and I get syntax errors.
If I put it in the index.php file in the wp-content folder, nothing happens. I am not sure what is wrong, but I am out of options.
I have tried putting the code above and below the existing code that is already in those files.
Here are the two codes I have
Thanks Glenn
<?
Header ( "HTTP/1.1 301 Moved Permanently" );
Header ( "Location: http://clickbankid.merchant.hop.clickbank.net" );
?>
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://clickbankid.merchant.hop.clickbank.net");
exit();
?>
- phpbbxpert
- [1] reply
- steve919
- icun
- mrmagos
- ar.anandan
- mihir
- raksamuda
- neal_p Banned
Next Topics on Trending Feed
-
8