com web/doc: Expand regexp to allow for dashes in chapter names: www/.htaccess
| From: | sobak@php.net | Date: | Fri, 20 Jun 2014 09:09:19 +0000 |
| Subject: | com web/doc: Expand regexp to allow for dashes in chapter names: www/.htaccess | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-2382@lists.php.net to get a copy of this message | ||
Commit: 6df86aca7347c5a495eef5614a64a9925cb6e332
Author: Sobak <msobaczewski@gmail.com> Fri, 20 Jun 2014 11:09:19 +0200
Parents: 509047ee8687a7bad5cbcb739e4558f7d1c2dde3
Branches: master
Link: http://git.php.net/?p=web/doc.git;a=commitdiff;h=6df86aca7347c5a495eef5614a64a9925cb6e332
Log:
Expand regexp to allow for dashes in chapter names
Changed paths:
M www/.htaccess
Diff:
diff --git a/www/.htaccess b/www/.htaccess
index 6c4763b..7c0566d 100644
--- a/www/.htaccess
+++ b/www/.htaccess
@@ -3,7 +3,7 @@ RewriteEngine On
# tutorial rewrites
RewriteRule ^(((.+)/)+)?tutorial$ /$1tutorial/ [L,R=301]
RewriteRule ^tutorial/$ /tutorial.php?chapter=intro [L]
-RewriteRule ^tutorial/([a-z]*).php$ /tutorial.php?chapter=$1 [L]
+RewriteRule ^tutorial/([a-z\-]*).php$ /tutorial.php?chapter=$1 [L]
# dochowto fix
RewriteRule ^(((.+)/)+)?dochowto$ /$1dochowto/ [R=301]