Discussion: header()
Afficher un message
Vieux 26/03/2008, 16h28   #1
rallykarro@hotmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut header()

Hi,

I have a question regarding the header() function call in PHP.
I have a simple redirect directive as below in a file http://www.xxxx.com/en/test.php:

<?
header("Location: /en/index.php");exit;
?>

This basically redirects the user to the english index.php page. The
functionality is working just fine, but the url looks strange.

I get after the redirect a url looking like http://www.xxxx.com/en/test.php
even though it is http://www.xxxx.com/en/index.php that is displayed
in the browser. Why is it like that? i want the url to look like
http://www.xxxx.com/en/index.php after its been redirected. Basically
it displayes the correct content with the wrong url.

thanks,

Karolina

  Réponse avec citation
 
Page generated in 0,05259 seconds with 9 queries