> I've been struggling with this redirect thing for a while but still cannot
> get it work. I'm desperately needing help, please.
>
> What I want to do is redirect
> http://computing.eng.iastate.edu/mambo/index.php?option=content&task=view&id=159&Itemid=162
> to
> https://computing.eng.iastate.edu/mambo/index.php?option=content&task=view&id=159&Itemid=162.
> The only difference between the above two URLs is one is http and the
> other is https.
>
> ==========
> if ($option == 'content' and $task == 'view' and $id == 159 and $Itemid ==
> 162)
> {
> session_write_close();
> header("Location:
> https://computing.eng.iastate.edu/mambo/index.php?option=content&task=view&id=159&Itemid=162");
> exit;
> }
> ==========
>
> Am I doing anything wrong with the Location header?
>
> Any help would be greatly appreciated.
>
> Bing
Looks correct to me. Are you meeting all the requirements for that if
statement? You have a lot of and's there.
For testing you could try:
if ($option == 'content' and $task == 'view' and $id == 159 and $Itemid ==
162) {
echo "It works! Yay me! Gimme a cookie, dammit!";
}
If you don't get that echo statement, then you should look into your if
statement.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php