Req #67027 [NEW]: Issue a "trailing slash" redirect

From: Date: Sat, 05 Apr 2014 11:31:05 +0000
Subject: Req #67027 [NEW]: Issue a "trailing slash" redirect
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185108@lists.php.net to get a copy of this message
From: cmbecker69 at gmx dot de Operating system: any PHP version: 5.5.11 Package: Built-in web server Bug Type: Feature/Change Request Bug description:Issue a "trailing slash" redirect Description: ------------ When the server receives a request for a URI that points to a directory, it should issue a redirect with a trailing slash appended, so that relative URIs in the delivered document work as expected. As it is now, when one requests http://localhost/foo, and there is a file foo/index.html with a <link href="./styles.css">, the stylesheet is requested as http://localhost/foo./styles.css instead of http://localhost/foo/styles.css. This issue was reported in #66191 as a bug, but the ticket was closed before later comments revealed the actual cause of the problem. I'm not sure if the current behavior can be regarded as a bug, but it would be nice, if it will be solved by the built-in webserver without requiring a custom router script. -- Edit bug report at https://bugs.php.net/bug.php?id=67027&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67027&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67027&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67027&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=67027&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=67027&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=67027&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=67027&r=needscript Try newer version: https://bugs.php.net/fix.php?id=67027&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=67027&r=support Expected behavior: https://bugs.php.net/fix.php?id=67027&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=67027&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=67027&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=67027&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67027&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=67027&r=dst IIS Stability: https://bugs.php.net/fix.php?id=67027&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=67027&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=67027&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=67027&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=67027&r=mysqlcfg

« previous php.bugs (#185108) next »