Ancient Temple City

Use .htaccess file on an apache localhost server

.htaccess is a configuration file that should be stored where your page is.

In short, it should be in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ (or) custom folder --> D:\dev\www\.

Don't forget to turn on mod_rewrite by deleting a hash from the line where it resides

LoadModule rewrite_module modules/

and enable .htaccess by changing

AllowOverride None


AllowOverride All

This was clearly explained as follows:

1) Find your apache directly which uses the php installation .
2) Open your httpd.conf  with notepad, Which is located in the path \apache\conf directory
3) Find the code like below

#LoadModule rewrite_module modules/

4) Remove # from above code

# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
AllowOverride All <--- make sure this is not set to "None"

5) Save httpd.conf file
6) Restart your apache server

Post a Comment



{facebook#} {twitter#} {google-plus#} {pinterest#} {youtube#} {instagram#}

Contact Form


Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget