views:

55

answers:

3
A: 

The HTTP/1.1 ask for an absolute URI with the parameter "location:". Some explorer accept relative paths, but your problem may come from here.

If it's an absolute path on the server, his configuration may be different from your local file. Check if /content is really in the root of the server (and not in a /www or thing like that).

Here a little code you could use to test your global variables.

<?php
/* Redirection to an other webpage in the same file */
$host  = $_SERVER['HTTP_HOST'];
$uri   = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$extra = 'mypage.php';
header("Location: http://$host$uri/$extra");
exit;
?>`
Sagara
A: 

Hi

It is possible to write Redirect Rules into the apache configuration file, your server may have a redirect rule for all urls which are not directorys or files to route to index.php and parse the string as parameters. Without knowing what the server is running on I cant tell you where the apache config file is.

Also how are you accessing the url string on the live site, you say that it parses the url string as parameters, are you using $_GET['some_var']?

Luke

Luke
Thanks for reply fellaz. I just called my web hosting support, and told that, my requests are beaing rewriten, and he sayd that yes, apache config had been edited for rewrites, after i updated my apache config with new directives, everything started to work properly, thank you jeesus
Jevgeny
A: 

Thanks for reply fellaz. I just called my web hosting support, and told that, my requests are beaing rewriten, and he sayd that yes, apache config had been edited for rewrites, after i updated my apache config with new directives, everything started to work properly, thank you jeesus – Jevgeny 0 secs ago edit

Jevgeny