Thursday February 9, 2012 @ 06:27:53 GMT+10    ( Weather:  n/a )
Home » Weblog Archives

Powered byD's Bloggie
Weblog » Archive » 2006 » May » Day 17 » Enable mod_rewrite in Windows
Browse by specific entry ...
 Nokia 6280To : BlurZzz 

Enable mod_rewrite in Windows - 7:21 pm
Apache's module - mod_rewrite
Computing , Guides  -  poster 

A quick tip to enable Apache's module, mod_rewrite, for Windows. You need the extra step 4 & 5 if you're still unable to enable the mod_rewrite in Windows.

  1. Find the httpd.conf file (usually you will find it in a folder called conf, config or something along those lines)
  2. Inside the httpd.conf file uncomment the line LoadModule rewrite_module modules/mod_rewrite.so (remove the pound '#' sign from in front of the line)
  3. Also find the line ClearModuleList is uncommented then find and make sure that the line AddModule mod_rewrite.c is not commented out.
  4. Then, find the the below section in httpd.conf

    DocumentRoot "C:/www/public_html"
    #
    # Each directory to which Apache has access, can be configured with respect
    # to which services and features are allowed and/or disabled in that
    # directory (and its subdirectories).
    #
    # First, we configure the "default" to be a very restrictive set of
    # permissions.
    #


  5. Now modify the option for AllowOverride to look like this:

    <Directory />
    Options All
    AllowOverride All
    </Directory>

Note:

The AllowOverride None in <Directory "C:/www/public_html" > scope will still disable url rewrite even though you got AllowOverride All in the scope of <Directory />. So be sure to check the AllowOverride options for every directory scope.

It's always convenient to use Options All but not a so-good-idea for stricter security. See Apache 2.0 directives for more info.



ps: Just to say "Woohoo ~~" for my weblog to hit over 100 entries =)
 Nokia 6280To : BlurZzz 

Reader comments ( Add your comments )

- No comments (yet) -

Leave a public comment

Info Note: Neither BBCode nor HTML tags are supported currently.
Why ? Just to make my life easier and keep things simple.
Others: Comments that are longer than 1000 characters will be truncated.

    ) Info

Info

Info


Before you submit... verification

Please enter verification codes as seen in the image above to post your comment.
If you can't read the word, click here
(Your comment will be manually approved by admin before it's displayed to public)

$ view_blog.php 2009.09.17 18:16:41 $
Lost? | XML/HTML sitemap | Contact
38.107.179.242 , 22 queries , 0.0495s
Gzip enabled , CSS compressed , JS compressed
Copyright © 2005-2011 Darren's Outpost