-
Good day Support!
Please could you assist me in checking my website https://ridersstage.com? I am worried that it could be having robot.txt and indexing issues. Pls, help fix the issue. Thanks
My site login details are below. Big Thanks!
-
Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
I’ve checked your site, and your robots.txt is returning a white page.
Also, using the Health Check Plugin, the issue still persists even with Rank Math being only activated.
In this case, please check your website’s root directory for a static robots.txt file since Rank Math’s robots.txt are created virtually/dynamically.
Let us know how this goes.
Thank you.
Pls i don’t understand “check your website’s root directory for a static robots.txt file”. Should I check with my hosting/Cpanel? What exactly should I do there?
I will be awaiting your kind response.
Thanks.
Hello,
Yes, you should check if there’s a static robots.txt file in your website’s hosting cPanel (file manager).
If there’s a robots.txt file, you may need to delete or at least rename it so Rank Math can generate it on your site.
You can also get in touch with your web host for assistance for checking your website’s root directory.
Let us know how this goes.
Thank you.
I have just checked the Cpanel, and there’s no robot txt file there. How do I attach a screen shot?
Hello,
We’ve tested your Rank Math robots file on the following URL: https://ridersstage.com/?robots=1 and it’s working properly without any issues. It looks like the rewrite rules for the robots file might not be working on your site. Please add the following rewrite rules to your website:
# For Nginx server:
# START Nginx Rewrites for Rank Math Robots.txt File rewrite ^/robots.txt$ /?robots=1 last; rewrite ^/([^/]+?)-robots([0-9]+)?.txt$ /?robots=$1&robots_n=$2 last; # END Nginx Rewrites for Rank Math Robots.txt File
Here’s an article you can check as well: https://ubiq.co/tech-blog/rewrite-url-parameters-nginx/
# For Apache server:
# START of Rank Math Robots.txt Rewrite Rules RewriteEngine On RewriteBase / RewriteRule ^robots.txt$ /index.php?robots=1 [L] # END of Rank Math Robots.txt Rewrite Rules
If you’re not sure how to apply this rule, you can get in touch with your hosting provider to do that for you.
Let us know how it goes. Looking forward to helping you.
Thank you.
Okay. I don’t think I know how to go about this. Should I add those codes to my website’s root directory or Cpanel?
I have added it website root directory see screenshot
https://privatebin.support-tools.com/?1b8625279866e2cd#ull05wVpi2n8vtKda11onWsvZe9pOhGqJ5KhcNusg9s=
So, what next?
Hello,
We can’t determine which file you are adding the code from the screenshot you shared (please make sure it is the
.htaccess
file).Please check with your hosting provider as they are in a better position to add those server configurations we shared previously for your website.
If that doesn’t help and if your website is completely running on an Apache server, please share your website FTP here so we can try adding the
.htaccess
configuration ourselves.Looking forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
I have shared my hosting/Cpanel password with you. I would appreciate it if you could fix this issue for me. Big Thanks
Hello,
Your control panel includes data for a lot of different domains and it’s impossible to be sure what
.htaccess
we are editing.Please get in touch with your hosting provider and ask them to add the relevant rules mentioned above and clear the caching after that.
Don’t hesitate to get in touch if you have any other questions.
The relevant rewrite rules have now been added. See the link below https://www1.ipage.com/controlpanel/foundation/hosting/file_manager/edit_file
What is the next thing to do?
Hello,
Upon checking your file manager, you have multiple
.htaccess.txt
files, but they should be saved as .htaccess only.I have renamed them as backup and created a .htaccess file in your website’s root directory with the rewrite rules.
The next step should be clearing your server and website’s cache for the changes to be applied.
Let us know how this goes.
Thank you.
Thanks for your prompt response!
And Thanks for the backup. I cleared website caches. But it is still showing a white page. https://ridersstage.com/robots.txt
Hi there,
We appreciate your patience and cooperation. We have tried to fix your issue by updating your .htaccess file, which is a file that controls how your website interacts with the server. However, it seems that our solution did not work as expected. We apologize for the inconvenience.
To resolve this, you will need to contact your hosting provider and ask them for assistance. They should be able to create a rule that tells the server how to handle requests for your robots.txt file, which is a file that tells search engines what they can or cannot access on your website. The rule should look like this:
RewriteEngine On RewriteBase / RewriteRule ^robots.txt$ /index.php?robots=1 [L]
Please explain to them that we have already attempted to add this rule, but it did not have any effect. They might have some additional settings or configurations that are preventing the rule from working properly.
We hope that this will help you solve your problem. If you have any other questions or concerns, please feel free to reach out to us again. We are always happy to help.
Thank you for choosing Rank Math as your SEO plugin!
The ticket ‘Indexing And Robot.txt Issues’ is closed to new replies.