Location of robots and htaccess in WordPress hosting

[ad_1]

Hi. I am confused a bit. I tried editing my robots.txt to disallow wp_admin but now unsure of it’s location. Should I upload it to home/mysite/ or home/mysite/public_html ? Which one is the root folder?

What should be the location of . htaccess? I can see two files in two different folders: one in home/mysite and one in home/mysite/public_html. This was created by Yoast SEO plugin and maybe modified by Cloudflare. Content is same in both. Maybe I accidently drag pasted while using Filezilla FTP client. Which one should I keep?

Thank you already

[ad_2]
1 Comment
  1. >*I tried editing my robots.txt to disallow wp_admin*

    There’s no need to do that. The protected areas of the admin are only accessible by authenticated users.

    The only htaccess file that you’re interested in sits in the webroot – typically /public_html.

    Cloudflare cannot modify files on your server.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer