Google Search Console not indexing default route - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Google Search Console not indexing default route (/showthread.php?tid=80191) |
Google Search Console not indexing default route - r24in - 09-26-2021 Hello, I created a personal website using Codeigniter 4. The server runs nginx on Ubuntu. My problem is that the homepage indexing on Google. All other pages are indexing as expected. Google URL Inspection shows 5xx server error, however I can reach the page from a web browser. Can someone suggest whats going wrong? Thanks RE: Google Search Console not indexing default route - kenjis - 09-27-2021 See CodeIgniter Error Logs. https://codeigniter4.github.io/CodeIgniter4/installation/troubleshooting.html#codeigniter-error-logs RE: Google Search Console not indexing default route - r24in - 09-27-2021 Thanks for your response. I could figure out the problem by reviewing the logs. I would like to draw your attention to the documentation. Maybe the example has the following line wrong: $currentAgent = $this->agent->robot(); Example in the documentation: Code: $agent = $this->request->getUserAgent(); RE: Google Search Console not indexing default route - kenjis - 09-27-2021 Thank you. I created a PR: https://github.com/codeigniter4/CodeIgniter4/pull/5146 |