File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
packages/playground/website-deployment Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,34 @@ function playground_maybe_redirect( $requested_path ) {
188
188
);
189
189
}
190
190
191
+ if ( str_ends_with ( $ requested_path , '/builder ' ) ) {
192
+ return array (
193
+ 'location ' => 'https://playground.wordpress.net/builder/builder.html ' ,
194
+ 'status ' => 301
195
+ );
196
+ }
197
+
198
+ if ( str_ends_with ( $ requested_path , '/wordpress ' ) ) {
199
+ return array (
200
+ 'location ' => 'https://playground.wordpress.net/wordpress.html ' ,
201
+ 'status ' => 301
202
+ );
203
+ }
204
+
205
+ if ( str_ends_with ( $ requested_path , '/gutenberg ' ) ) {
206
+ return array (
207
+ 'location ' => 'https://playground.wordpress.net/gutenberg.html ' ,
208
+ 'status ' => 301
209
+ );
210
+ }
211
+
212
+ if ( str_ends_with ( $ requested_path , '/proxy ' ) ) {
213
+ return array (
214
+ 'location ' => 'https://github-proxy.com/ ' ,
215
+ 'status ' => 301
216
+ );
217
+ }
218
+
191
219
if ( str_ends_with ( $ requested_path , '/wordpress-browser.html ' ) ) {
192
220
return array (
193
221
'location ' => '/ ' ,
You can’t perform that action at this time.
0 commit comments