Download Blank .htaccess File
Here is a simple blank (empty) .htaccess file, ready for download.
Download blank .htaccess fileVersion 1.0 ( 376 bytes ZIP )
👉 Read notes below.
Why?
Because .htaccess files by default are hidden on most systems. In some cases it is easier to simply download a blank copy instead of trying to create one manually.
As someone who works a lot with Apache/.htaccess, it’s nice to have a “go-to” place for downloading and sharing a blank/empty .htaccess file.
Notes
- The download is a tiny (376 bytes) ZIP file
- Unzip the download file to get a folder named
/blank-htaccess-file/ - Inside of
/blank-htaccess-file/is a blank.htaccessfile - To view the file, your OS must be configured to display hidden files
- For more details, check out my post on how to create and use .htaccess files
- To learn how to use Apache/
.htaccessto optimize and secure your site, check out my book .htaccess made easy and related free tutorials - For tons of related tutorials and code snippets, check out the Apache and .htaccess archives here at Perishable Press
- If you have any questions or comments, feel free to share in the comments section below, or reach me anytime via my contact form
About the Author
Jeff Starr = Web Developer. Book Author. Secretly Important.
Perishable Press is operated by Jeff Starr, a professional web developer and book author with two decades of experience.
Here you will find posts about web development, WordPress, security, and
4 responses to “Download Blank .htaccess File”
Well, I still have a functioning (bug-corrected) copy of the old “Dot HTAccesser” that used to be online, put out by Bite Size, Inc [now defunct].
Pretty handy utility!
I may be looking at reworking the script to improve the user interface, but it still easily generates some very good starter “.htaccess” files.
And, it’s scripted in PHP.
– Jim S Smith
I just discovered that my web host has switched to Apache 2.4. That’s why I had to change the rules in the .htaccess. Can you tell me if I have set this up correctly?
Thanks so much!
Here are three examples:
# protect license.txt
Require all denied
# protect error logs
Require all denied
# protect .htaccess
Require all denied
Oops, unfortunately the complete command lines have been lost. :(
I replied to your email, please check spam if needed. Thank you