FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
setup htaccess to run on window xp

 
Post new topic   Reply to topic    Cambodia eXPlore Forum Index -> Client - Server Side Development
Author Message
guitarman
fourth grade


Joined: 04 Nov 2005
Posts: 728

PostPosted: Tue Jan 10, 2006 12:39 am    Post subject: setup htaccess to run on window xp Reply with quote

I have recently set up a Apache with PHP and mySQL web server on my window XP OS. I thought it would not be possible to have my htaccess works already since my apache is running on Window, but it is possible. So below is what i change to make htaccess works on my window xp.

1- open up your httpd.conf using your window xp notepad
2- find the following sections:

# 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 None

3- Change "AllowOverride None" to "AllowOverride All"
4- Make sure the line "AccessFileName .htaccess" is uncommented. By default, it is uncommentted.
5- Restart your apache service. MUST always restart your apache web service whenever you make changes to httpd.conf

In my case, I use mod_rewrite to rewrite the dynamic url to something easy for search engine to read and hence, I also uncomment this line "#LoadModule rewrite_module modules/mod_rewrite.so" by removing the leading "#" sign.

That's it, as simple as that to have your htaccess works in window xp.
Let see if you face problem getting your htaccess to work in your window xp apache web server.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cambodia eXPlore Forum Index -> Client - Server Side Development All times are GMT + 8 Hours
Page 1 of 1



by phpBB