-1
Hello, I’m having a problem on a site made in wordpress hosted on hostigator. The site is in https://samos.com.br/mainsite. When I open the page of the site apparently everything goes well. However since the site has not been indexed in Google for some time, I went to investigate and realized that the site root returns a 404 error:
I believe this problem is preventing google to index the site. Could someone give me a tip on how to solve?
Also when testing on performance sites, I get the same result: https://developers.google.com/speed/pagespeed/insights/? url=https://samos.com.br/mainsite
See also the domain root . htaccess:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://samos.com.br/$1 [R,L]`
And . htaccess on the site /mainsite :
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</IfModule>
# END rlrssslReallySimpleSSL
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Any hint is welcome.
I managed to solve the issue of error 404 as follows: updated wordpress, updated plugins, there was no cache plugin. Later I saw that in the settings the theme redirected the 404 pages to the home, and the theme hid this page of the searches. I am now trying to make the page appear in the searches, do you have any suggestions? https://i.stack.Imgur.com/PJXPW.png
– Albanir Neves