note 37090 added to ref.apache
| From: | (no fruits!) | Date: | Sun, 02 Nov 2003 23:38:25 +0000 |
| Subject: | note 37090 added to ref.apache | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-59665@lists.php.net to get a copy of this message | ||
You could do that with a simple:
<?php
if (strlen($_SERVER['PATH_INFO']) > 0)
{
header("location: $_SERVER[SCRIPT_NAME]?$_SERVER[QUERY_STRING]");
}
?>
Also, in Apache2 you can set AcceptPathInfo to off (it might even be off as default)...
However, you should give full URIs to your stylesheets etc ;)
----
Manual Page -- http://www.php.net/manual/en/ref.apache.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37090
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37090&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37090&report=yes
Search -- http://master.php.net/manage/user-notes.php