|
@@ -8,15 +8,15 @@ RewriteRule .* app.php [QSA,L,E=_ROUTING__route:foo,E=_ROUTING_bar:%1,E=_ROUTING
|
|
|
|
|
|
# bar
|
|
|
RewriteCond %{REQUEST_URI} ^/bar/([^/]+?)$
|
|
|
-RewriteCond %{REQUEST_METHOD} !^(get|head)$ [NC]
|
|
|
-RewriteRule .* - [S=1,E=_ROUTING__allow_get:1,E=_ROUTING__allow_head:1]
|
|
|
+RewriteCond %{REQUEST_METHOD} !^(GET|HEAD)$ [NC]
|
|
|
+RewriteRule .* - [S=1,E=_ROUTING__allow_GET:1,E=_ROUTING__allow_HEAD:1]
|
|
|
RewriteCond %{REQUEST_URI} ^/bar/([^/]+?)$
|
|
|
RewriteRule .* app.php [QSA,L,E=_ROUTING__route:bar,E=_ROUTING_foo:%1]
|
|
|
|
|
|
# baragain
|
|
|
RewriteCond %{REQUEST_URI} ^/baragain/([^/]+?)$
|
|
|
-RewriteCond %{REQUEST_METHOD} !^(get|post|head)$ [NC]
|
|
|
-RewriteRule .* - [S=1,E=_ROUTING__allow_get:1,E=_ROUTING__allow_post:1,E=_ROUTING__allow_head:1]
|
|
|
+RewriteCond %{REQUEST_METHOD} !^(GET|POST|HEAD)$ [NC]
|
|
|
+RewriteRule .* - [S=1,E=_ROUTING__allow_GET:1,E=_ROUTING__allow_POST:1,E=_ROUTING__allow_HEAD:1]
|
|
|
RewriteCond %{REQUEST_URI} ^/baragain/([^/]+?)$
|
|
|
RewriteRule .* app.php [QSA,L,E=_ROUTING__route:baragain,E=_ROUTING_foo:%1]
|
|
|
|
|
@@ -42,15 +42,15 @@ RewriteRule .* app.php [QSA,L,E=_ROUTING__route:baz4,E=_ROUTING_foo:%1]
|
|
|
|
|
|
# baz5
|
|
|
RewriteCond %{REQUEST_URI} ^/test/([^/]+?)/$
|
|
|
-RewriteCond %{REQUEST_METHOD} !^(post)$ [NC]
|
|
|
-RewriteRule .* - [S=2,E=_ROUTING__allow_post:1]
|
|
|
+RewriteCond %{REQUEST_METHOD} !^(POST)$ [NC]
|
|
|
+RewriteRule .* - [S=2,E=_ROUTING__allow_POST:1]
|
|
|
RewriteCond %{REQUEST_URI} ^/test/([^/]+?)$
|
|
|
RewriteRule .* $0/ [QSA,L,R=301]
|
|
|
RewriteCond %{REQUEST_URI} ^/test/([^/]+?)/$
|
|
|
RewriteRule .* app.php [QSA,L,E=_ROUTING__route:baz5,E=_ROUTING_foo:%1]
|
|
|
|
|
|
# 405 Method Not Allowed
|
|
|
-RewriteCond %{_ROUTING__allow_get} !-z [OR]
|
|
|
-RewriteCond %{_ROUTING__allow_head} !-z [OR]
|
|
|
-RewriteCond %{_ROUTING__allow_post} !-z
|
|
|
+RewriteCond %{_ROUTING__allow_GET} !-z [OR]
|
|
|
+RewriteCond %{_ROUTING__allow_HEAD} !-z [OR]
|
|
|
+RewriteCond %{_ROUTING__allow_POST} !-z
|
|
|
RewriteRule .* app.php [QSA,L]
|