Check if htaccess is enabled | Test if htaccess is working

December 2, 2010

I see newbie programmers cracking up on htaccess issues. Normally it is a simple process where you can get beautiful stuff working in about 5 minutes time.

Most of us find the required code by googling up our requirements. Its initially tough to master the htaccess coding. But when we put then to action on our own servers. It does not work. I have seen my own programmers spending days together trying to find out why the hell is .htaccess file is not working.

First you should know how to create a .htaccess file.  I suppose you know already. If not follow the link.

Ok now open you .htaccess file in a text editor and add this simple code to the file.

redirect 301 /filename.html http://rooturaj.com

Now there should be a file exactly called filename.html or create any file like test.html and replace the same int he code above. If your htaccess is working then you should be redirected to my site  http://rooturaj.com when you click on your link to http://yourdomainname.com/filename.html or enter it directly in the browser.

If it doesnot then your htaccess is not up. Contact your hosting provider and kick his ass till he get it up and working for you. I sincerely hope this post helped you in what you are looking for. Do share this or link to this page so that other may use it too.

3 Comments

  1. Exactly what i was looking for.

    Client didn’t have the right webhosting package. Thanks!

  2. The fastest way is to insert junk text on .htaccess and access the website.
    If it gets an “Internal Server Error” message, it means that .htaccess is working.

Comments are closed.

Latest Posts

Rooturaj Pattanaik

Technology & Business Consultant with customers across 6 countries. A doting father and loving husband writing about various topics like Technology, Travel, Society, Digital marketing, Investment consulting etc.

MY DICTIONARY PROJECT

I have started a new project called the Indic Dictionary. This will cover popular household words in India and what they are called in various languages. Eventually, I will make this an easy to use app where where people can easily find something like “hing in English” or “Tea Tree Oil in Hindi” or “carrom seeds in Urdu”.
Previous Story

Power Quotes | Popular Facebook and Twitter Quotes

Next Story

skype is down | Skype does not sign in

Latest from Programming

Go toTop

Don't Miss