Keywords: Magento - Google Cloud Platform - Technical issue - Other
Description:
(Home Page and index.php ) using both the www & non-www domain variations.
Website (Home Page) is indexed in Google using both the www & non-www domain variations
https://example.com AND https://www.example.com/home
https://example.com/index.php AND https://www.example.com/index.php
posted on bitnami 2 week ago and been advised to search for an answer from Magento.
NO LUCK
For anyone having the same problem Running web-store on https://www
This what I've done
sudo nano /opt/bitnami/apache2/conf/bitnami/bitnami.conf
# After <VirtualHost _default_:443>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www\.|localhost|127.0.0.1)
RewriteRule ^(.*)$ https://www.nutrapura.com.au$1 [R=permanent,L]
Not sure if this is the right way to fix the issue but look like it is fixing part of the issue
In regards Home Page and index.php, I end up with modifying robots.txt by adding
User-agent: *
Disallow: /index.php/
Disallow: /index.php
In google webmasters tools Add URL Parameters (home) as Representative URL