Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Scripting language speed (in response to Alex Gaynor) (jmoiron.net)
2 points by coldtea on March 16, 2013 | hide | past | favorite | 1 comment


404 without "Trailing Slash".

Here's the .htaccess fix (untested):

RewriteEngine on

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_URI} !(.)/$

RewriteRule ^(.)$ http://%{HTTP_HOST}/$1/ [L,R=301]




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: