Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
andreamarucci
Experienced
Topic Author
Posts: 308
Joined: 01 Mar 2011, 11:13

Google search console error

15 May 2019, 04:00

Hello, Google search console tell me that there are mobile problems on this page

http://gallery.kog.it/content/3.2006201 ... /5.060408/

that's not a visible page of my gallery here

https://gallery.kog.it

and if you try to browse that page you see only a list of images.

Quite strange that this page is in the sitemap I think but the question is how to fix this problem.

Thanks!
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Google search console error

15 May 2019, 06:56

If your server was setup properly, it should not allow listing of files when URL accesses a folder on your website. If you cannot set it in your hosting options (you should be able to do that), you will need to include the below in your .htaccess file:
Code
# Block directory listing.
# This should already be default on your server, and is disabled here because it creates errors on some servers.
<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>
The above is code from the X3 .htaccess, but commented out, because we don't by default include rules that are not related to X3.

So basically, if Google finds this page, it may (or may not) index it. It should be FORBIDDEN. Why search console reports it a mobile issue or whatnot is irrelevant.
andreamarucci wrote:Quite strange that this page is in the sitemap I think but the question is how to fix this problem.
Google finds whatever it wants to find, and does not care much about sitemaps. If a page/file is available, chance is Google will find it.
 
User avatar
andreamarucci
Experienced
Topic Author
Posts: 308
Joined: 01 Mar 2011, 11:13

Re: Google search console error

15 May 2019, 16:26

Thanks!