Apache is a great open source web server, but the configuration files are as clear as hieroglyphics. Fortunately there’s an easy way to get the configuration settings you need. Keep reading to find out how to make an .htaccess file with ease.
httpd.conf or .htaccess?
If you have access to the main Apache directory, you should probably be making most of your changes in the httpd.conf file. It’s less server-intensive that way.
However, if you’re in a hosting environment where you can’t access the main configuration file, sometimes the .htaccess file is the only option you have.
How to Make an .htaccess File with Ease
You could spend hours upon hours reading the documentation over at the Apache website, or you could take an easier approach: have your .htaccess file generated for you automatically.
The Free .htaccess Redirect Generator
So, this generator won’t write every type of configuration rule; it’s only for redirects. But that’s still a great shortcut to getting Apache to cooperate.
Using this generator, you can make your file in 3 easy steps:
- Go to the generator (http://www.htaccessredirect.net/index.php)
- Enter your redirection rules
- Click the “generate” button
The generator spits out your code, and then all you have to do is put the code in your .htaccess file and load that on your server.
Too bad all configuration files aren’t that easy.
Leave a Reply