How to appear in google searches (Error 404 at the root of the Wordpress site)

Asked

Viewed 26 times

-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?

Exemplo do problema 404 no network do stie

Also when testing on performance sites, I get the same result: https://developers.google.com/speed/pagespeed/insights/? url=https://samos.com.br/mainsite

https://www.webpagetest.org/

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.

1 answer

1

Do you use cache plugins? have you looked at your permanent links? Try to mark your "home" page as "static home page" in Read Settings, If it doesn’t work, redoing your sitemap.xml can help you solve it.

  • 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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.