Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
in Q2A Core by

Hey, My site is opening and working fine for normal users. But, It is not being accessed by Googlebot to index my site. It is giving Server error (5xx).

Here are details:

Site link: Getvoice.org

Additional: Cloudflare for SSL and CDN, Flexible SSL, Forced https.

Everything is working fine and the site is opening everywhere, on any device. Everything is fine including Email sending, forget password, Question & Answer...everything. No issue detected till now.

But, whenever any bot/tool is trying to access the site, they are getting "http Internal Server Error 500".

For instance, I have checked using seobility SEO checker (https://freetools.seobility.net/en/seocheck/check?url=https%3A%2F%2Fgetvoice.org%2F&crawltype=1).


Then, I tried to take a snapshot of the website using an online tool. I used Site-shot (https://www.site-shot.com/u8MgqHUPEeuYdQJCrBEABQ).


Then, I checked using VPN (from the USA), the site was opening. That means, for normal visitors, the site is working fine.

Then, I added the domain for Crawling and then, live test it with Google URL inspection Live test tool. The tools say, Server error (5XX).


That means Google is not going to index the site as it is not accessible by any bot.

What I have done till now:

I have googled since the last 2 days about this error. I searched like "how to solve 500 internal server errors" and others like that. Even, I have even asked on Stackoverflow about this error (https://stackoverflow.com/questions/66316712/my-site-is-giving-http-status-code-500error-how-to-solve-it). But my question was closed.

Also, I have changed the PHP version from 7.3 to 7.1 then to 7.3 back. And also, I have increased my PHP memory limit from 128M to 256M. But nothing happens.

My finding till now:

I have tried all the possible methods. Now, as per me, there is a misconfiguration in my .htaccess file. 

My .htaccess file:

Options -Indexes

DirectoryIndex index.php

<IfModule mod_rewrite.c>

    RewriteEngine On

    #RewriteBase /

    RewriteCond %{REQUEST_URI} ^(.*)//(.*)$

    RewriteRule . %1/%2 [R=301,L]

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]


Server Error Log


Latest Error log Message:

Client denied by server configuration: /home/getvoice/public_html/.htaccess

[Mon Feb 22 11:58:41.929036 2021] [authz_core:error] [pid 11713] [client] AH01630: client denied by server configuration: /home/getvoice/public_html/.htaccess

[Mon Feb 22 09:51:12.950809 2021] [core:alert] [pid 12126] [client] /home/getvoice/public_html/.htaccess: AllowOverride not allowed here

[Mon Feb 22 09:51:12.949925 2021] [core:alert] [pid 12126] [client] /home/getvoice/public_html/.htaccess: AllowOverride not allowed here

Q2A version: 1.8.5

1 Answer

+2 votes

According to the error message your Apache site configuration doesn't contain a directive to allow setting overrides via htaccess in that directory. Check the config file and make sure the virtual host contains something like this:

<Directory "/home/getvoice/public_html">
AllowOverrides All

Actually, I am using Shared Hosting with Cpanel.. .

I also have contact my hosting provider and the have done as per your suggestion and as per documentation (https://docs.question2answer.org/install/htaccess/). But still, the problem continues.

Can you guide me where to add this code?? I mean in .htaccess file or any file accessed by normal user in cpanel.

I am using cpanel.
Sorry, I'm not using cPanel, so I can't really help you there. AFAICS your hosting provider needs to add the directive I mentioned to either the server config (globally) or to your virtual host config. If they did that and it still doesn't work access to the server would be required for further troubleshooting.
reshown by
Can you describe me full details?
Hey Aariyan,

I have solved that issue.

Actually, my public function code was deleted while removing copyright.