The Voice of the Web Hosting World
The Web Hosting Show is the number one web hosting and development podcast. Never miss an episode! Subscribe today to our RSS feed for free, or subscribe via iTunes.

Enter your e-mail address to get daily tips delivered to your inbox:

How to Create a .htaccess File

.htaccess - a real american hero?I like to tell you about the basics here on this show, as well as the advanced things.  Creating a .htaccess file is some where in between.

The .htaccess file is a way to make a change to the configurations of your hosting account for each directory.  For example, once you put a .htacess file in your public_html folder, on a Linux based hosting account, it will set the rules for that folder and all the folders created in it.

Here is everything you need to know…

Step 1 – Open up a text editor (such as Notepad or cPanel’s File Manager) and add in the lines you need and save the file.

Step 2 – Using the cPanel’s File Manager or your FTP client you will need to upload the file to the location you need it. This is usually inside of your public_html folder.

Step 3 – Rename the file to .htaccess, and save. It should be noted that .htaccess is the file extension. It is not filename.htaccess or yourpage.htaccess, it is just named .htaccess.

Truth be told, you really don’t need to know what the .haccess file is, as long as you can find the right snipits of code or “recipes” in it to get the job done.  At least now you know how to create it… and knowing is half the battle.

| More

Related Posts & Podcasts

php.ini help and tips
How to Create a php.ini File
The php.ini file is a file that can be created to customize some of the configurations for your particular hosting account’s PHP setup.  Some of the things you may be able to edit would be whether global variables are

Turning off “Index of”
3 Quick Tips – Hide Folder Content
Related Podcast Link: Listen to Episode 119! Want to hide the content of that folder you just uploaded? Here are three ways of doing just that. When you view a folder on the web that does not have any sort of index

How Anybody Can Install WordPress
As you can tell, if you have been to any of my web sites, I really enjoy WordPress a lot as a way to self-publish my content Online.  WordPress is often known for it’s simple installation process too. However, many people

blog comments powered by Disqus

Mitch Keeler © 2009 - Sitemap | Privacy Policy
Dedicated Server Hosting provided by Layered Tech

Go to Top of Page