• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

Is there a way to to upload .htaccess file to local host directories?

serplord

New member
Oct 4, 2020
10
0
1
Usually I can upload via ftp or directly from cpanel to a remote/live server but how can I upload the .htaccess files to inner directories within a local development site?

Thanks
 
Usually I can upload via ftp or directly from cpanel to a remote/live server but how can I upload the .htaccess files to inner directories within a local development site?

Thanks
Just copy and paste the files into the directories on your local machine using File Explorer?
 
  • Like
Reactions: serplord
Just copy and paste the files into the directories on your local machine using File Explorer?

OK thanks
Just to clarify what it is i'm trying to achieve here - i'm trying to disable php execution. It was always recommended that I add a .htaccess file with:
<Files *.php>
deny from all
</Files>
into the /wp-includes/ and /wp-content/uploads/ sub-directories.

I have simply copied and pasted the file seperately into the two above directories like you've kindly suggested.

I can see now I have a main .htaccess file with all the autogenerated stuff on it and now these two additional files i've created. I'm only a beginner so i'd be really thankful if anyone can tell me:
- Is there any reason why what i've done above will not work? I'm not a php scripter so don't know how to test if php execution has been disabled in these directories or not.
- Is there anyway I can harden my backend further based on the above implementation?
 
Last edited:
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock