For Google Cloud Wordpress stack version 4.5.1 upgraded to 4.5.2.
My first question is why are there htaccess related lines in the httpd-app.conf arent them supposed to be place only in the htaccess.conf as you suggest here:
Forum Question
And my second question is that i find these lines in your htpd-app.conf:
RewriteEngine On
#RewriteBase /wordpress/
RewriteRule ^index.php$ - [S=1]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
While according to wordpress official docs:
Wordpress htaccess official docs
It should be something like
# BEGIN WordPress
"<"IfModule mod_rewrite.c">"
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
"<"/IfModule">"
# END WordPress
As you can see in bitnami httpd-app.conf there are some differences for the rewrite engine:
It does not check if module mod_rewrite.c is running
the rewrite base is different /wordpress/ instead of simply /
and the first rewrite rule is RewriteRule ^index.php$ - [S=1] instead of RewriteRule ^index.php$ - [L]
As according to wordpress docs this does not reads as it should, i ask myself if you made these changes because they are necessary to how wordpress works in your bitnami stack, so i should leave them as they are and do not overwrite it with my official wordpress htaccess lines.
Or on the contrary if i am supposed to overwrite them with what i had in my previous hosting which as i say, was exactly what the official wordpress docs suggest for a non multisite wordpress.