Forum Moderators: phranque

Message Too Old, No Replies

.htaccess files on Windows XP

         

anshul

8:44 pm on Apr 25, 2006 (gmt 0)

10+ Year Member



Hi friends,

I've never used WAMP configuration with Windows XP. I used only Win 2000/ Win 2003 always.

However, now I came to use WAMP with Windows XP. Problem is anyhow, .htaccess files are not working!

I tried simplest code; DirectoryIndex default.php, but it won't works.

mod_rewrite.iso shows listing in Loaded Modules ( using phpinfo(); ), still it is not working!

Please help me. Thank you.

jdMorgan

11:55 pm on Apr 25, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As you probably know, Windows doesn't use Unix-style hidden filenames like ".htaccess."

So, you'll need to find the AccessFileName [httpd.apache.org] directive in your server config file, and make sure that you name your htaccess file accordingly.

In addition, you'll need to set AllowOverride [httpd.apache.org] and Options [httpd.apache.org] to allow directives in htaccess files to be processed and to execute.

Jim

anshul

7:24 am on Apr 26, 2006 (gmt 0)

10+ Year Member



AllowOverride All is what I needed (missed). Thank you jd.

dpoperngr

11:47 am on Apr 26, 2006 (gmt 0)

10+ Year Member



I've had an overwhelming problen with spammers on my guestbook. I'm using a .htaccess but some of them are still getting through. Any input?

jdMorgan

12:36 pm on Apr 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



dpoperngr,

Since this is an unrelated topic, you'll likely get better and faster answers if you start a new thread with an appropriate title and description.

Also, you might want to post a short and relevant code snippet, and a few access log file samples showing successful and unsuccessful blocking attempts. Please obscure any uniquely-identifiable information such as your domain name to comply with our Terms of service (Thanks).

Be aware that .htaccess code can prevent the log spammers from fetching page content from your site and wasting a lot of bandwidth, but it cannot stop them from accessing your server and showing up in your log file -- By the time that .htaccess runs, they have already accessed your server, and that access will be logged. The only way to actually stop this is to block them using a high-end hardware firewall.

Jim