Reply to Header Location redirection parameters fail to redirect

Your name:

Reply:


Posted by Olav Drageset on 05/11/05 01:14

I want url mysite.no to redirect to mysite.com with parameters lang=no
and ctry=no, but the parameters do not follow the redirection.

mysite.no/index.php is

<?
Header ('Location: http://mysite.com/index.php?lang=no&ctry=no' ) ;
exit;
?>


mysite.com/index.php is

<? echo "<h3>mysite.com Homepage </h3> ";
$lang = $_REQUEST['lang'];
$ctry = $_REQUEST['ctry'];
echo "Country= $ctry <br> Language= $lang";
?>

When I browse mysite.no mysite.com homepage is shown
with lang and ctry as blank
When I browse mysite.com/index.php?lang=no&ctry=no
parameters lang and ctry are set to no as I wish

I have the server on my own laptop where I also do the browsing. I use
PHP 4.2.2

I kindly got some answers yesterday that do not seem to solv the
question so I have made myself more specific. Do anyone have a clue why
the parameters are stripped from the redirection?
(I am not very trained, but as far as I know the parameters should be
redirected??!!)

Thanks
Olav

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация