Add robot txt in wp site
- User
Add robot txt in wp site
- Assistant
To add a robots.txt file to a WordPress site, follow these steps:
Method 1: Using a Plugin
-
Install a Plugin
-
- User
For seowriter.in/robots.txt
- Assistant
Add robot txt in wp site
To add a robots.txt file to a WordPress site, follow these steps:
Install a Plugin
For seowriter.in/robots.txt
Plugins > Add New.Configure the Plugin
SEO > Tools > File Editor for Yoast SEO).Save Changes
Access Your Site via FTP or Hosting File Manager
Navigate to the Root Directory
public_html or www directory.Create or Edit the robots.txt File
Check if a robots.txt file already exists. If not, create one.
Edit the file and add your desired rules. For example:
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Save the File
Here's an example of a typical robots.txt file for a WordPress site:
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Disallow: /wp-includes/
Disallow: /wp-content/plugins/
Disallow: /wp-content/themes/
Disallow: /readme.html
Disallow: /refer/
Disallow: /cgi-bin/
Sitemap: https://www.example.com/sitemap.xml
Access the File Directly
https://www.example.com/robots.txt.Test with Google Search Console
Crawl > robots.txt Tester.By following these steps, you can effectively manage and customize your WordPress site’s robots.txt file.
To add or edit the robots.txt file for the domain seowriter.in, you can follow the previously mentioned methods. Below, I'm outlining the specific steps tailored for your domain.
Access WordPress Dashboard
https://seowriter.in/wp-admin and log in with your credentials.Add a New Plugin
Plugins > Add New.Search and Install SEO Plugin
Install Now and then Activate.Access Yoast SEO Settings
SEO (found on the left sidebar) > Tools.File Editor
File Editor. If this option doesn’t show up, go to SEO > General > Features and make sure the Advanced settings pages are enabled.Edit robots.txt
You will see a text area to edit/create the robots.txt file.
Add your rules. For instance:
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Disallow: /wp-includes/
Disallow: /wp-content/plugins/
Disallow: /wp-content/themes/
Disallow: /readme.html
Disallow: /refer/
Disallow: /cgi-bin/
Sitemap: https://seowriter.in/sitemap.xml
Save Changes
Save changes to robots.txt.Login to Hosting Control Panel
File Manager
public_html or a directory named after your domain.Check for Existing File
robots.txt. If it doesn't exist, create a new file named robots.txt.Edit File
Open the robots.txt file in the editor provided by your file manager or FTP client.
Add your rules. Here’s an example:
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Disallow: /wp-includes/
Disallow: /wp-content/plugins/
Disallow: /wp-content/themes/
Disallow: /readme.html
Disallow: /refer/
Disallow: /cgi-bin/
Sitemap: https://seowriter.in/sitemap.xml
Save and Upload
Access File via Browser
https://seowriter.in/robots.txt.Test with Google Search Console
Crawl > robots.txt Tester.By following these steps, you should be able to successfully create and manage the robots.txt file for your site seowriter.in.
Not yet included in a published release.