Getting .htaccess on AppServ (Windows) to work

5th Feb 2008 05:35am

Getting .htaccess files to work on AppServ (Windows version) a lot of peoples computers doesn't seem to work, I myself am one of those people, so I fiddled around the other day and got it working - so hopefully if you follow this tutorial you'll understand how to get it to work and it should work for you.

First of all if you locate your Apache folder (within your AppServ folder, usually installed directly on your C drive) and go into a folder called "conf", then open the file called "httpd.conf".
.htaccess on AppServ

Find:

#LoadModule rewrite_module modules/mod_rewrite.so

Replace:
LoadModule rewrite_module modules/mod_rewrite.so

Removing the '#' (hash) symbol will enable the rewrite module. (Note: Some configurations are already loaded, if so ignore it)

Find:

AccessFileName .htaccess

Replace:
AccessFileName my.htaccess

Changing this from .htaccess to my.htaccess means that your .htaccess files will have to be called "my.htaccess" (However when you upload them to a real web server online then you'll need to rename them back to .htaccess)

Now restart your Apache server (This can be done by going into the Apache folder, then into the "bin" folder and running the program "ApacheMonitor.exe", opening it from the system tray and clicking "Restart")

Read and Leave a Comment 6 Comment(s) -:- Permalink
Views: 23,648 Tags: htaccess, appserv, apache, windows, httpd, rewrite module

5th Feb 2008 16:31

Music on your main page!!!!! TACKY!!!!
By Me

6th Feb 2008 8:34

That is not my fault! The music comes from the flash game - as I mentioned on my front page.
By Dale Hay

16th Dec 2008 16:35

Thank you too much brother

you helped me with this explainiation

Regards,
AHmed
By Ahmed Abdul Moula

22nd Jan 2009 6:58

you're the best
By stelios k

17th Feb 2009 4:20

thanks man you're great
By abduljabar taoufikallah

23rd Feb 2009 16:55

Thanks for this explanation. It helps me a lot.
:)
By andys

Post your comment...

Your Name:

Your Email:

Your Website URL: (With 'http://')

Posting Codes
[b]Hello[/b] makes Hello
[i]Hello[/i] makes Hello
:-) makes
:-( makes
:-D makes
:wtf: makes
;-) makes
:mad: makes
:omg: makes
:haha: makes

Your Comment:

Note: Your IP address is saved into the database when you submit a comment. Any type of threatening behaviour will result in your ISP being contacted and legal action being taken place!

Latest News Stories
» Pectus Excavatum - Catchup
» Pectus Excavatum - The Final Chapter
» Pectus Excavatum Operation
» One Dream That Won't Be Fulfilled...
» Hotpoint WIXXE127 on Twitter Trends
» Google StreetView: Superheroes found in Blackpool
Top Viewed Stories
» PHP Mini Message Board Tutorial (40,846)
» Bypass Photobucket (32,473)
» PHP Search Engine Tutorial (29,359)
» Getting .htaccess on AppServ (Windows) to work (23,647)
» Rare McDonalds Monopoly 2008 Tickets (11,947)
» Helen Willetts Pregnant? (9,557)
Most Commented Stories
» PHP Mini Message Board Tutorial (101)
» PHP Search Engine Tutorial (37)
» Create your own Image Uploader (23)
» Pectus Excavatum (20)
» I like my DuMP (15)
» New Shameless Trailer! (10)