Home Website TutorialsWordPress Fixing the robots.txt file is not writable error when using Rank Math

Fixing the robots.txt file is not writable error when using Rank Math

by Thạch Phạm
Published: Last Updated on
A+A-
Reset

Fixing the robots.txt file is not writable error when using Rank Math with 2 steps.

Introduction

Recently AZDIGI has supported customers to handle an error case recorded on the Rank Math Plugin that is the error of not being able to edit the robots.txt file and the error message robots.txt file is not writable as shown below:

CleanShot 2022 05 14 at 16.43.17 1

This error is not too common, but in this article, AZDIGI will guide you on handling it if you accidentally encounter it.

Implementation Guide

This error will notify you that you currently do not have permission to edit the content of the robots.txt file, please check as below:

  • Check the permissions of the robots.txt file

In this case, you need to access the Host/VPS containing your website. Next, at the robots.txt file, you check its Permissions to see if it is correctly set to 644, if not, you need to re-authorize it to correct 644.

CleanShot 2022 05 14 at 17.57.32
  • Check the wp-config.php file

With 90% of cases I encounter, it will often fall into this case. First, you need to access the Host/VPS containing your website, then you open and edit wp-config.php.

CleanShot 2022 05 14 at 18.03.21

After opening the file, you can look in the wp-config.php file to see if there is a paragraph similar to the content below. If so, you can delete this line or add a # character at the beginning of the line, to disable it. Since this option means it will not allow you to edit the Theme and Plugin in the WordPress dashboard (Usually this line will be automatically added when you install Security Plugins, for example: iThemes Security).

define( 'DISALLOW_FILE_EDIT', true );
CleanShot 2022 05 14 at 18.07.06

After you have deleted or added the # character for the above line, now try to check and edit your Robot.txt file.

And below are my results, now editing the robot.txt file is working properly.

CleanShot 2022 05 14 at 18.18.46

You can refer to other instructions at the link below:

If you need support, you can contact support in the ways below:

Đánh giá

Tham gia nhóm hỗ trợ Server - Hosting

Tham gia nhóm Hỗ trợ Server - Hosting & WordPress để cùng nhau hỏi đáp và hỗ trợ các vấn đề về WordPress, tối ưu máy chủ/server.

Tham gia ngay

Bài viết cùng chuyên mục

AZDIGI – Không chỉ là đơn vị hàng đầu trong lĩnh vực Web Hosting và Máy chủ, chúng tôi mong muốn mang lại những kiến thức bổ ích nhất và luôn cập nhật thường xuyên cho cộng đồng người đam mê thiết kế website, công nghệ,…

Vui lòng không sao chép nội dung nếu chưa xin phép. Designed and Developed by PenciDesign