From 4544dfc5de63617262a87aed064a0fe7320be22e Mon Sep 17 00:00:00 2001 From: Olivier Perez Date: Wed, 18 Nov 2015 17:45:39 +0100 Subject: [PATCH] URL rewriting: Add "_-" to regex for action names --- htaccess.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htaccess.txt b/htaccess.txt index 7bbc669..2627d9a 100644 --- a/htaccess.txt +++ b/htaccess.txt @@ -9,8 +9,8 @@ RewriteRule . - [L] RewriteRule ^([a-zA-Z0-9]{16})$ studs.php?poll=$1 [L] - RewriteRule ^([a-zA-Z0-9]{16})/action/([a-zA-Z]+)/(.+)$ studs.php?poll=$1&$2=$3 + RewriteRule ^([a-zA-Z0-9]{16})/action/([a-zA-Z_-]+)/(.+)$ studs.php?poll=$1&$2=$3 RewriteRule ^([a-zA-Z0-9]{16})/vote/([a-zA-Z0-9]{16})$ studs.php?poll=$1&vote=$2 RewriteRule ^([a-zA-Z0-9]{24})/admin$ adminstuds.php?poll=$1 RewriteRule ^([a-zA-Z0-9]{24})/admin/vote/([a-zA-Z0-9]{16})$ adminstuds.php?poll=$1&vote=$2 - + \ No newline at end of file