Bookmark and Share   Gain More Web Site Control With htaccess
web hosting directory web hosting dedicated server colocation hosting web hosting services servers web hosting company web hosting article web host news

web hosting
Cheap web hosting
Windows web hosting
Linux web hosting
Unrestricted hosting
Ecommerce web hosting
Virtual server VPS
Reseller hosting
by US State
by US City
Discount Web Hosting
Discount VPS
Articles

Cheap dedicated servers
Best dedicated servers
Windows dedicated servers
Linux dedicated servers
Unrestricted server
dedicated managed server
dedicated server unmetered
by US State
by US City
Discount dedicated server
Articles

Cheap colocation hosting
Unrestricted Colocation
by US State
by US City
Coupons Promotion
Articles

Domain Registration
SSL Certificate
Website Statistics
Merchant account
Control panel
WebSite monitor

Intel Servers
AMD servers
SCSI Servers
Cheap Servers

Web hosting company
Dedicated Hosting
Colocation hosting
Web Hosting Services
Server manufacturer
Reviews

Top 10 Dedicated Servers April 2009

Securing VPS

Optimising MySql

Top 10 Dedicated Servers March 2009

Why every small business needs a web site

Why so many people abandon work on their web site, and 10 things you can do to stay up to date.

The Curse of the Abandoned Website and Ten Things You Can Do To Avoid It

How to Express Yourself (by Writing) on the Internet: Part Two

More Articles







Gain More Web Site Control With htaccess



There are many tools of the trade in the world of Web site development, but very few have as many good uses as your .htaccess file. What, you don't have one? I'll admit, information on these little darlings are confusing to some and hard to find. Hence the reason why we need an explanation of what it is and what it can do for you.

Inside your web hosting space, you know you have folders, HTML documents, and other things that make your Web site work. Think of this file as just another addition to the many thing you have inside there. It usually sits inside your root directory, such as "/public_html/" and has more than a few good uses. You might already have a .htaccess file in your root directory. If so, all you need to do is edit that one. Just remember that if it is in your root directory, that it will effect all folders and documents inside that directory. If you want to over ride that, then you will have to make a new .htaccess file inside the directory in question.

For an example, if you want what is in the .htaccess file to effect everything but your "photos" folder then you would have to create a new .htaccess file inside your "photos" folder.

How can you create one? Well, depending on the FTP program you are using it should be as easy as creating a new document, then renaming it .htaccess. Note that it has nothing coming before the dot. If you have anything in front of the dot, then it will not be read by the web hosting server as a .htaccess file. The server will not know what to do with it.

If you want to create the file on your computer first, you should be able to right-click your desktop and select "New" then "Text Document". Then right-click that document on your desktop, and go to "Rename". Type in the new name as ".htaccess". Some programs might put the .txt extension on it automatically. All you have to do is go in to rename it again, and take that part off.

Another thing to remember is if you are creating the file on your own computer or uploading it from your own computer, make sure you are uploading it in ASCII mode, not binary. Most FTP programs do a pretty good job at auto-detecting how it should be uploaded, but if you run into a problem that is the first place I would check.

Also, .htaccess files can only be created on a Linux based server running Apache. If you are not sure if you fall into that category login to your control panel your Web host provided you and snoop around in there. If you are still not sure, feel free to ask your Web host. That is what they are there for! You may need to CHMOD the htaccess file to 644 so the sever can execute the commands inside it.

Now you know how to create an empty .htaccess file. Now it is time to start filling it up with some easy to learn and useful commands. Think of each line you put into the .htaccess file as a command for the web hosting server to do something. Here is an example of what I mean. Think of this as the content of your .htaccess file:

  • Take out the trash
  • Clean the sink
  • Mow the yard
  • Rake the leaves


    Each are short commands you might do during your own day. A .htaccess file is much like giving the web hosting server a to do list. Most commands in the .htaccess file are suppose to be on one line only. This is just the way that the server reads the information.

    Another warning you might take in consideration is the ability to use the .htaccess file at all. Some Web hosts have banned it or banned it for certain uses because it causes stress and strain on the web hosting server itself. Make sure you read through your Web host's frequently asked questions and acceptable use policy before moving forward. If they have something against it, then it should be in one of those two places.

    Now that you have it, what can you do with it? That is another few articles all together. Some of the coolest things are password protection, error page redirects, and deny/allow IP address to access your Web site.





    Mitch Keeler is a guy who likes to help people out in his own charismatic and odd way. Instead of showing somebody how to do something, he much more enjoys having people see the problem and the solution through his own eyes. Mitch has worked as an article and content writer for various Web sites around the globe.



  • Mitch Keeler Articles  


    Content is Key to Web Site Success
    Content is Key to Web Site Success

    No matter how flashy or great your Web site...
    Written by: Mitch Keeler
    Web Design
    Control Panel Explained and Test
    Every Web host provides you with one, and if you do a lot of work on your Web site it could be...
    Written by: Mitch Keeler
    Hosting
    Finding Your Balance in Web Site Design
    Back when I first got on the Web, some of my first Web site designs were just horrible. Heck I was...
    Written by: Mitch Keeler
    Web Design
    Four Questions To Ask When Shopping For Web Hosting
    Web hosting is a difficult and confusing business to get yourself into, but sooner or later just...
    Written by: Mitch Keeler
    Web Hosting
    Gain More Web Site Control With htaccess
    There are many tools of the trade in the world of Web site development, but very few have as many...
    Written by: Mitch Keeler
    Hosting
    Get the Most Out of Your Tags
    Get the Most Out of Your Tags

    We have all heard of alt and title tags when it...
    Written by: Mitch Keeler
    SEO
    No Sounds in Web Site Design
    You Need No Sounds in Web Site Design

    I recently received an E-mail from somebody...
    Written by: Mitch Keeler
    Web Design
    Web Hosting Deal Too Good To Be True
    Stay away from Web hosting deals that sound too good to be true. Why? Well if it sounds too good to...
    Written by: Mitch Keeler
    Web Hosting




    Incredible offer


    TOP 10 BEST DEDICATED SERVERS MAY 2009


    AskWebhosting.com recommends 3dstats.com real time web statistics for tracking your visitors.


    SingleHop Review
    ThePlanet Review
    ServerPronto Review
    1&1 1and1 Review

    Hostgator Review
    midPhase Review
    1&1 Review
    HostMonster Review
    BlueHost Review

    Atom 330 DualCore dedicated server under $50

    netdepot deals 30% Off Dual Nehalem 5520 dedicated server

    ReliableHosting Coupon code 50% off

    UnmeteredServers com $2 99 Mbit dedicated server

    serverminds dedicated servers promotions

    Quad Core dedicated server promotions

    WebNX Coupons dual quad core servers under $200

    Dell dedicated server promotions

    Hostgator coupon

    SingleHop coupons

    1and1 coupon 1&1 coupon

    theplanet Coupons

    More Deals



    Delve Networks Assists Former Maven Customers with Platform Migration Program

    The Mobile Email Long-Tail Explored in Free Webinar

    iPorn Web Application Still Available for iPhone

    S&T Bancorp to Webcast Second Quarter Earnings Conference Call

    RedLightCentercom Hosts First Ever Virtual PornStar TweetUp With Special Guest Ember Reigns

    AT&T Hosts Kids Day at PETCO Park for 600 San Diego Area Kids

    More News



    Free Web Stats
    Web Statistics
    Web Templates
    Free Photos
    AllQuests


    2000-2009 AskWebHosting.com        Web Hosting Questions    Privacy Policy