This issue have been going on for awhile now and I have to contact google console to clear it out but now I can’t.
I have contacted several forum and they told me that the issue is redirection. They also told me that the server I am using is Nginx and the .htaccess file don’t work in Nginx server.
I have tried creating nginx.conf file in my htdocs directory but it’s not working. Please I need help
The first part is wrong, and second part is right. InfinityFree uses both Nginx and Apache, and as Apache is the one that sees the files, .htaccess files work perfectly fine here.
Well that makes sense as we don’t support those configuration files. We only support .htaccess files.
Also, I’m not quite sure what .htaccess / nginx.conf files have to do with this. The message is because google does not like the contents of your site. Add your domain to the google search console to see what can be done to fix this.
EDIT: just realized I misread the error message. See the reply below (ignore above)
As I said, IF uses both types of servers. Apache is in change of the files, and Nginx is in change of the response (generally). You have to use Apache configuration files (.htaccess) here.
The Server header reports whatever you want to report. We could have it say “InfinityFree Hosting” if we wanted it to.
We use both NGINX and Apache. NGINX is used on the “outer” layer, with Apache being used on the “inner” layer. The advantage of this is that we support .htaccess files, because NGINX does not have any way to configure easily configure the web sever per website. Even if we were only using NGINX, you still couldn’t just dump an nginx.conf in a directory and expect the server to pick it up.
In short: ignore the Server string. If you want to configure something, use .htaccess files.