rewrite somehow also change the SERVER_PORT value?
Posted: Wed Mar 03, 2010 8:18 pm
I setup a rewrite rule simply like:
RewriteRule ^product test.php
And in the test.php, it is as simple as:
<?php
echo $_SERVER["SERVER_PORT"];
?>
If I access http://localhost:6060/test.php directly, I got correct port 6060.
If I access it like http://localhost:6060/product/something.php, I got 80.
Any idea of it?
Thanks a lot.
RewriteRule ^product test.php
And in the test.php, it is as simple as:
<?php
echo $_SERVER["SERVER_PORT"];
?>
If I access http://localhost:6060/test.php directly, I got correct port 6060.
If I access it like http://localhost:6060/product/something.php, I got 80.
Any idea of it?
Thanks a lot.