• Home
  • About

Snippet IT

IT News, Programming, Internet and Blogging

  • Programming and Scripting
  • Tips and Tricks
  • Software and Hardware
  • New and Happening
You are here: Home / Programming and Scripting / Enable .htaccess and URL rewriting in Apache HTTP Server for Windows

Enable .htaccess and URL rewriting in Apache HTTP Server for Windows

April 2, 2008 by Sze Hau Leave a Comment

This is an article that I wrote few months ago in my own blog about enabling .htaccess and URL rewriting in Apache HTTP Server for windows. I decide to move this article here so that those information technology related information will be focused in this site.

Enabling “.htaccess” file in Windows need some tricks. Windows does not support filename started with a dot. What we can do here is to use “htaccess” or whatever name instead of “.htaccess”.

Step 1 – Check Apache is working properly

Make sure you have setup apache and php correctly. Make sure that you can run PHP scripts (or other scripting) without any problem.

Step 2 – Modify httpd.conf

Use notepad to open httpd.conf config file. Make use the line “LoadModule rewrite_module modules/mod_rewrite.so” is un-commented.

Under “” section, change the line “AllowOverride None” to “AllowOverride All“.

And finally, change the line “AccessFileName .htaccess” to “AccessFileName htaccess“.

Remember to restart Apache Windows Service after you have made the changes.

Step 3 – Test out your htaccess file

Write your URL rewrite settings in “htaccess” file and point your browser to the host name to test if the htaccess and URL rewrite setting is correct.

… and it’s done.

Filed Under: Programming and Scripting Tagged With: apache, htaccess, url rewrite

About Sze Hau

Geek. Love programming. Coffee addicted. Married with two children. Working towards financial freedom.

Leave a ReplyCancel reply

Advertisement

Email News Letter

Sign up to receive updates daily and to hear what's going on with us

Software and Hardware

MD5 and SHA1 Checksum Using Windows

July 5, 2017 By Sze Hau Leave a Comment

Blog Network

  • Personal Fincance Personal Finance – Personal Money Tips, Stock Investment, Small Business and Make Money Online
  • szehau's weblog Life, Internet, Software, Gadgets, Programming and Investments

Snippet IT

This is the place where I want to share anything about information technology.

Search

Recent

  • MD5 and SHA1 Checksum Using Windows
  • MD5 and SHA1 Checksum Using Linux
  • Java: Unlimited Strength Jurisdiction Policy
  • WordPress: How To Change Admin Username
  • Linux: How To Compress And Decompress Folders And Files

Tags

advertisement blog C# Chrome DecimalFormat EGPC Float format format Integer free icons Gmail Google Google Adsense Google Chrome Google Search Engine Google search result how to HTTP Java JavaScript Linux money password performance PHP programming search engine optimization secure security short URL site value spam SQL static constructor String thread tiny URL Tips and Tricks trackback twitter video Wordpress wordpress plugin wordpress theme Youtube

Copyright © 2025 · Magazine Pro Theme on Genesis Framework · WordPress · Log in