Software, your way.
burger menu icon
WillMaster

WillMaster > LibraryWeb Page and Site Optimization

FREE! Coding tips, tricks, and treasures.

Possibilities weekly ezine

Get the weekly email website developers read:

 

Your email address

name@example.com
YES! Send Possibilities every week!

Testing .htaccess Without Killing The Server

The .htaccess file is sensitive to errors.

I've never actually killed the server with a mistake. But I have reduced the entire willmaster.com website to a massive 500 Internal Server Error. Several times.

Then, I figured out how to sandbox my testing. With the sandbox, I can try new things until I get them working - without affecting the rest of the server.

You can do the same.

Make a subdirectory. (The subdirectory is the sandbox.) Inside the subdirectory, put the .htaccess and any other files necessary for the test. No public pages are in the sandbox subdirectory, only those required for the test.

Test until the subdirectory's .htaccess file behaves like it is supposed to. It should now be safe to transfer the command lines to the public .htaccess file.

It is likely to work in the public directory as in the sandbox, but no guarantees. Test the public pages. Be prepared to reverse the public .htaccess file changes and do further sandbox testing.

Will Bontrager

Was this article helpful to you?
(anonymous form)

Support This Website

Some of our support is from people like you who see the value of all that's offered for FREE at this website.

"Yes, let me contribute."

Amount (USD):

Tap to Choose
Contribution
Method

All information in WillMaster Library articles is presented AS-IS.

We only suggest and recommend what we believe is of value. As remuneration for the time and research involved to provide quality links, we generally use affiliate links when we can. Whenever we link to something not our own, you should assume they are affiliate links or that we benefit in some way.

How Can We Help You? balloons
How Can We Help You?
bullet Custom Programming
bullet Ready-Made Software
bullet Technical Support
bullet Possibilities Newsletter
bullet Website "How-To" Info
bullet Useful Information List

© 1998-2001 William and Mari Bontrager
© 2001-2011 Bontrager Connection, LLC
© 2011-2024 Will Bontrager Software LLC