FOLDER STRUCTURE:
root/.htaccess
root/dont-index-me.php
As you can see above, htaccess file and dont-index-me.php are in same folder so which one is correct content for htaccess file?
WITH SLASH:
User-agent: *
Disallow: /dont-index-me.php
WITHOUT SLASH:
User-agent: *
Disallow: dont-index-me.php
Thanks
WITHOUT SLASH: