Apache and mod_rewrite and .htaccess

Once you are done with Apache installation, then enable the mod_rewrite. Now configure the .htaccess in a such a way that it allows to override and AllowOverride is set to All for the correct DocumentRoot. You should see something similar to:

# 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
# features.
#

    Options FollowSymLinks
    AllowOverride All
#    Order deny,allow
#    Deny from all

How to Make sure you are loading up mod_rewrite correctly. You should see something like:

LoadModule rewrite_module libexec/apache2/mod_rewrite.so
Share this nice post:

2 thoughts on “Apache and mod_rewrite and .htaccess

Leave a Reply

Your email address will not be published. Required fields are marked *