I have the following situation:
- I have a new website like this:
https://www.example.com
- When you access to my website, it automatically redirects (302 redirection) to its English language page version like this:
https://www.example.com/en/index.php
But I have an issue, because Google only indexes the page https://www.example.com/en/index.php
And Google doesn't index the actual URL of the website https://www.example.com
I have added the following meta/canonical to https://www.example.com/en/index.php
, but it doesn't solve the Google index issue:
<link rel="canonical" href="https://www.example.com">
index.php
in the URL to users. That document is the default document for the directory and it is meant to be hidden. I'll bet redirecting tohttps://www.example.com/en/
would work just fine and it would be a much cleaner URL for Google to index.