Forum Moderators: phranque

Message Too Old, No Replies

.htaccess on my windows xp machine

what am I doing wrong

         

Aberdeen

5:46 pm on Oct 2, 2004 (gmt 0)

10+ Year Member



I can not get my htaccess file to work on my windows xp machine. I am sure there is a simple explination.

The .htaccess is as follows:

ErrorDocument 404 /404.htm

But where exactly should the file be? I have tried it in many places with no luck.

In the httpd.conf the following is set :

AllowOverride None

Order allow,deny
Allow from all

#LoadModule rewrite_module modules/mod_rewrite.so

Is there anything else I should be doing?

Cheers

jdMorgan

9:28 pm on Oct 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Put your .htaccess file in any Web-accessible directory. It will affect that directory and any subdirectories of that directory. Usually, you will place your "main" .htaccess file in the same directory as your "home page."

Your LoadModule rewrite_module line is commented out, so remove the "#" from the beginning.

You'll also need to enable certain AllowOverride settings and Options to allow mod_rewrite to work.

See this thread on setting up mod_rewrite [webmasterworld.com] for more info.

Jim