We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d27485 commit 0f97485Copy full SHA for 0f97485
appengine/php72/wordpress/files/gae-app.php
@@ -4,19 +4,23 @@ function get_real_file_to_load($full_request_uri)
4
{
5
$request_uri = @parse_url($full_request_uri)['path'];
6
7
+ // Redirect /wp-admin to /wp-admin/ (adds a trailing slash)
8
if ($request_uri === '/wp-admin') {
9
header('Location: /wp-admin/');
10
exit;
11
}
12
13
+ // Serve up "index.php" when /wp-admin/ is requested
14
if ($request_uri === '/wp-admin/') {
15
return '/wp-admin/index.php';
16
17
18
+ // Load the file requested if it exists
19
if (is_file(__DIR__ . $request_uri)) {
20
return $request_uri;
21
22
23
+ // Send everything else through index.php
24
return '/index.php';
25
26
0 commit comments