{"id":11464672,"date":"2019-04-24T23:21:11","date_gmt":"2019-04-24T23:21:11","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/mulitsite-on-google-cloud\/"},"modified":"2019-04-24T23:21:11","modified_gmt":"2019-04-24T23:21:11","slug":"mulitsite-on-google-cloud","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/mulitsite-on-google-cloud\/","title":{"rendered":"Mulitsite on Google Cloud"},"content":{"rendered":"<p>I entered the following in the wp-config.php file as instructed.<br \/>\ndefine(&#8216;MULTISITE&#8217;, true);<br \/>\ndefine(&#8216;SUBDOMAIN_INSTALL&#8217;, false);<br \/>\ndefine(&#8216;DOMAIN_CURRENT_SITE&#8217;, &#8216;34.83.40.35&#8217;);<br \/>\ndefine(&#8216;PATH_CURRENT_SITE&#8217;, &#8216;\/&#8217;);<br \/>\ndefine(&#8216;SITE_ID_CURRENT_SITE&#8217;, 1);<br \/>\ndefine(&#8216;BLOG_ID_CURRENT_SITE&#8217;, 1);<br \/>\nand added this in the .htaccess file replaceing what was there.<br \/>\n\t\tRewriteEngine On<br \/>\nRewriteBase \/<br \/>\nRewriteRule ^index\\.php$ &#8211; [L]<\/p>\n<p># add a trailing slash to \/wp-admin<br \/>\nRewriteRule ^([_0-9a-zA-Z-]+\/)?wp-admin$ $1wp-admin\/ [R=301,L]<\/p>\n<p>RewriteCond %{REQUEST_FILENAME} -f [OR]<br \/>\nRewriteCond %{REQUEST_FILENAME} -d<br \/>\nRewriteRule ^ &#8211; [L]<br \/>\nRewriteRule ^([_0-9a-zA-Z-]+\/)?(wp-(content|admin|includes).*) $2 [L]<br \/>\nRewriteRule ^([_0-9a-zA-Z-]+\/)?(.*\\.php)$ $2 [L]<br \/>\nRewriteRule . index.php [L]<br \/>\nwhat I get when I log out is Error establishing a database connection<\/p>\n<p>If I comment out the line added to wp-config.php, I get my site back but it is not a Multisite. <\/p>\n","protected":false},"template":"","class_list":["post-11464672","topic","type-topic","status-publish","hentry","topic-tag-google-cloud","topic-tag-multisite","topic-tag-wp-config-php"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11464672","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11464672\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11464672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}