26a561cc911807fa65c5a62b08b9c21d2153348d
[yaffs-website] / vendor / symfony / routing / Tests / Fixtures / dumper / url_matcher1.apache
1 # skip "real" requests
2 RewriteCond %{REQUEST_FILENAME} -f
3 RewriteRule .* - [QSA,L]
4
5 # foo
6 RewriteCond %{REQUEST_URI} ^/foo/(baz|symfony)$
7 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:foo,E=_ROUTING_param_bar:%1,E=_ROUTING_default_def:test]
8
9 # foobar
10 RewriteCond %{REQUEST_URI} ^/foo(?:/([^/]++))?$
11 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:foobar,E=_ROUTING_param_bar:%1,E=_ROUTING_default_bar:toto]
12
13 # bar
14 RewriteCond %{REQUEST_URI} ^/bar/([^/]++)$
15 RewriteCond %{REQUEST_METHOD} !^(GET|HEAD)$ [NC]
16 RewriteRule .* - [S=1,E=_ROUTING_allow_GET:1,E=_ROUTING_allow_HEAD:1]
17 RewriteCond %{REQUEST_URI} ^/bar/([^/]++)$
18 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:bar,E=_ROUTING_param_foo:%1]
19
20 # baragain
21 RewriteCond %{REQUEST_URI} ^/baragain/([^/]++)$
22 RewriteCond %{REQUEST_METHOD} !^(GET|POST|HEAD)$ [NC]
23 RewriteRule .* - [S=1,E=_ROUTING_allow_GET:1,E=_ROUTING_allow_POST:1,E=_ROUTING_allow_HEAD:1]
24 RewriteCond %{REQUEST_URI} ^/baragain/([^/]++)$
25 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:baragain,E=_ROUTING_param_foo:%1]
26
27 # baz
28 RewriteCond %{REQUEST_URI} ^/test/baz$
29 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:baz]
30
31 # baz2
32 RewriteCond %{REQUEST_URI} ^/test/baz\.html$
33 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:baz2]
34
35 # baz3
36 RewriteCond %{REQUEST_URI} ^/test/baz3$
37 RewriteRule .* $0/ [QSA,L,R=301]
38 RewriteCond %{REQUEST_URI} ^/test/baz3/$
39 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:baz3]
40
41 # baz4
42 RewriteCond %{REQUEST_URI} ^/test/([^/]++)$
43 RewriteRule .* $0/ [QSA,L,R=301]
44 RewriteCond %{REQUEST_URI} ^/test/([^/]++)/$
45 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:baz4,E=_ROUTING_param_foo:%1]
46
47 # baz5
48 RewriteCond %{REQUEST_URI} ^/test/([^/]++)/$
49 RewriteCond %{REQUEST_METHOD} !^(GET|HEAD)$ [NC]
50 RewriteRule .* - [S=2,E=_ROUTING_allow_GET:1,E=_ROUTING_allow_HEAD:1]
51 RewriteCond %{REQUEST_URI} ^/test/([^/]++)$
52 RewriteRule .* $0/ [QSA,L,R=301]
53 RewriteCond %{REQUEST_URI} ^/test/([^/]++)/$
54 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:baz5,E=_ROUTING_param_foo:%1]
55
56 # baz5unsafe
57 RewriteCond %{REQUEST_URI} ^/testunsafe/([^/]++)/$
58 RewriteCond %{REQUEST_METHOD} !^(POST)$ [NC]
59 RewriteRule .* - [S=1,E=_ROUTING_allow_POST:1]
60 RewriteCond %{REQUEST_URI} ^/testunsafe/([^/]++)/$
61 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:baz5unsafe,E=_ROUTING_param_foo:%1]
62
63 # baz6
64 RewriteCond %{REQUEST_URI} ^/test/baz$
65 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:baz6,E=_ROUTING_default_foo:bar\ baz]
66
67 # baz7
68 RewriteCond %{REQUEST_URI} ^/te\ st/baz$
69 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:baz7]
70
71 # baz8
72 RewriteCond %{REQUEST_URI} ^/te\\\ st/baz$
73 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:baz8]
74
75 # baz9
76 RewriteCond %{REQUEST_URI} ^/test/(te\\\ st)$
77 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:baz9,E=_ROUTING_param_baz:%1]
78
79 RewriteCond %{HTTP:Host} ^a\.example\.com$
80 RewriteRule .? - [E=__ROUTING_host_1:1]
81
82 # route1
83 RewriteCond %{ENV:__ROUTING_host_1} =1
84 RewriteCond %{REQUEST_URI} ^/route1$
85 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:route1]
86
87 # route2
88 RewriteCond %{ENV:__ROUTING_host_1} =1
89 RewriteCond %{REQUEST_URI} ^/c2/route2$
90 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:route2]
91
92 RewriteCond %{HTTP:Host} ^b\.example\.com$
93 RewriteRule .? - [E=__ROUTING_host_2:1]
94
95 # route3
96 RewriteCond %{ENV:__ROUTING_host_2} =1
97 RewriteCond %{REQUEST_URI} ^/c2/route3$
98 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:route3]
99
100 RewriteCond %{HTTP:Host} ^a\.example\.com$
101 RewriteRule .? - [E=__ROUTING_host_3:1]
102
103 # route4
104 RewriteCond %{ENV:__ROUTING_host_3} =1
105 RewriteCond %{REQUEST_URI} ^/route4$
106 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:route4]
107
108 RewriteCond %{HTTP:Host} ^c\.example\.com$
109 RewriteRule .? - [E=__ROUTING_host_4:1]
110
111 # route5
112 RewriteCond %{ENV:__ROUTING_host_4} =1
113 RewriteCond %{REQUEST_URI} ^/route5$
114 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:route5]
115
116 # route6
117 RewriteCond %{REQUEST_URI} ^/route6$
118 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:route6]
119
120 RewriteCond %{HTTP:Host} ^([^\.]++)\.example\.com$
121 RewriteRule .? - [E=__ROUTING_host_5:1,E=__ROUTING_host_5_var1:%1]
122
123 # route11
124 RewriteCond %{ENV:__ROUTING_host_5} =1
125 RewriteCond %{REQUEST_URI} ^/route11$
126 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:route11,E=_ROUTING_param_var1:%{ENV:__ROUTING_host_5_var1}]
127
128 # route12
129 RewriteCond %{ENV:__ROUTING_host_5} =1
130 RewriteCond %{REQUEST_URI} ^/route12$
131 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:route12,E=_ROUTING_param_var1:%{ENV:__ROUTING_host_5_var1},E=_ROUTING_default_var1:val]
132
133 # route13
134 RewriteCond %{ENV:__ROUTING_host_5} =1
135 RewriteCond %{REQUEST_URI} ^/route13/([^/]++)$
136 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:route13,E=_ROUTING_param_var1:%{ENV:__ROUTING_host_5_var1},E=_ROUTING_param_name:%1]
137
138 # route14
139 RewriteCond %{ENV:__ROUTING_host_5} =1
140 RewriteCond %{REQUEST_URI} ^/route14/([^/]++)$
141 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:route14,E=_ROUTING_param_var1:%{ENV:__ROUTING_host_5_var1},E=_ROUTING_param_name:%1,E=_ROUTING_default_var1:val]
142
143 RewriteCond %{HTTP:Host} ^c\.example\.com$
144 RewriteRule .? - [E=__ROUTING_host_6:1]
145
146 # route15
147 RewriteCond %{ENV:__ROUTING_host_6} =1
148 RewriteCond %{REQUEST_URI} ^/route15/([^/]++)$
149 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:route15,E=_ROUTING_param_name:%1]
150
151 # route16
152 RewriteCond %{REQUEST_URI} ^/route16/([^/]++)$
153 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:route16,E=_ROUTING_param_name:%1,E=_ROUTING_default_var1:val]
154
155 # route17
156 RewriteCond %{REQUEST_URI} ^/route17$
157 RewriteRule .* app.php [QSA,L,E=_ROUTING_route:route17]
158
159 # 405 Method Not Allowed
160 RewriteCond %{ENV:_ROUTING__allow_GET} =1 [OR]
161 RewriteCond %{ENV:_ROUTING__allow_HEAD} =1 [OR]
162 RewriteCond %{ENV:_ROUTING__allow_POST} =1
163 RewriteRule .* app.php [QSA,L]