From: Christian Weiske Date: Mon, 6 Jul 2015 20:47:19 +0000 (+0200) Subject: redirect paste url with ending slash on apache X-Git-Tag: v0.6.0~9 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/a1e6e4c154727f30aaa2e406eb5afb3810d4b398 redirect paste url with ending slash on apache --- diff --git a/www/.htaccess b/www/.htaccess index cda57f9..7ab6364 100644 --- a/www/.htaccess +++ b/www/.htaccess @@ -6,6 +6,7 @@ RewriteBase / #RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^([0-9]+)$ display.php?id=$1 +RewriteRule ^([0-9]+)/$ $1 [R] RewriteRule ^([0-9]+)/delete$ delete.php?id=$1 RewriteRule ^([0-9]+)/delete/confirm$ delete.php?id=$1&confirm=1 RewriteRule ^([0-9]+)/doap$ doap.php?id=$1