I'm having so much trouble getting broken links to redirect to a good link on my website. The website provider doesn't seem to be able to explain it to me, I just don't understand... First they said use mode rewrite... I put in this rule for a .htaccess file...
RewriteEngine On
RewriteRule /annuities/fixed.php$ /annuities/fixed_annuity.php
RewriteRule /annuities/ohio_immediate_annuities.php$ /annuities/immediate_annuity.php
this does not work...
then they said this...
<?php
header("Location: " . $_REQUEST["url"]);
?>
That should do exactly what you want. Put those lines in a file by themselves. No other code is necessary. Then just call the script with the url parameter set to the place to you want to be redirected to.>>>
put this code in what file I don't really understand. all I want to do is get the broken links to redirect to a good link. Will this code work, what file would it go under?
thanks.