Skip to content

Commit 0eb8744

Browse files
author
Issac Trotts
committed
Use Takashi's app.yaml.
Brent was having some trouble serving posts on his site with the simple app.yaml before this change.
1 parent 9c73b36 commit 0eb8744

File tree

1 file changed

+51
-2
lines changed
  • appengine/standard/wordpress/app

1 file changed

+51
-2
lines changed

appengine/standard/wordpress/app/app.yaml

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,55 @@ runtime: php72
22
instance_class: F2
33

44
handlers:
5-
- url: /(.*)
6-
script: \1
5+
- url: /(.*\.(htm|html|css|js))
6+
static_files: \1
7+
upload: .*\.(htm|html|css|js)$
8+
application_readable: true
9+
secure: always
10+
11+
- url: /wp-content/(.*\.(ico|jpg|jpeg|png|gif|woff|ttf|otf|eot|svg))
12+
static_files: wp-content/\1
13+
upload: wp-content/.*\.(ico|jpg|jpeg|png|gif|woff|ttf|otf|eot|svg)$
14+
application_readable: true
15+
secure: always
16+
17+
- url: /(.*\.(ico|jpg|jpeg|png|gif|woff|ttf|otf|eot|svg))
18+
static_files: \1
19+
upload: .*\.(ico|jpg|jpeg|png|gif|woff|ttf|otf|eot|svg)$
20+
application_readable: true
21+
secure: always
22+
23+
- url: /wp-includes/images/media/(.*\.(ico|jpg|jpeg|png|gif|woff|ttf|otf|eot|svg))
24+
static_files: wp-includes/images/media/\1
25+
upload: wp-includes/images/media/.*\.(ico|jpg|jpeg|png|gif|woff|ttf|otf|eot|svg)$
26+
application_readable: true
27+
secure: always
28+
29+
- url: /wp-admin/(.+)
30+
script: wp-admin/\1
31+
secure: always
32+
33+
- url: /wp-admin/
34+
script: wp-admin/index.php
35+
secure: always
36+
37+
- url: /wp-login.php
38+
script: wp-login.php
39+
secure: always
40+
41+
- url: /wp-cron.php
42+
script: wp-cron.php
43+
login: admin
44+
secure: always
45+
46+
- url: /xmlrpc.php
47+
script: xmlrpc.php
48+
secure: always
49+
50+
- url: /wp-(.+).php
51+
script: wp-\1.php
52+
secure: always
53+
54+
- url: /(.+)?/?
55+
script: index.php
756
secure: always

0 commit comments

Comments
 (0)