Forum Moderators: phranque

Message Too Old, No Replies

.htaccess not working in XP... help!

         

bhuether

2:31 pm on Mar 21, 2003 (gmt 0)

10+ Year Member



This is driving me nuts. In the conf file, I have uncommented the two relevant lines that relate to mod_rewrite (actually my problem isn't just mod rewrite - it is that htaccess does not appear to be getting used period!).

I have specified the access file to be .htaccess

.htaccess does indeed exist in my root directory

As a test, I have this in the .htaccess file:

RewriteEngine On

ErrorDocument 404 /404.shtml

When going to a bogus page, I get the IE 404 page. So it seems that .htaccess is just being completely ignored. In the apache error log, I found one entry that has to do with htaccess:

[Fri Mar 21 14:55:05 2003] [error] [client 127.0.0.1] client denied by server configuration: c:/mysite/public_html/.htaccess

Anyone have any idea what could possibly be going on here? Other than this, everything works just fine.

-brian

The_Warden

2:51 pm on Mar 21, 2003 (gmt 0)

10+ Year Member



Do you have the proper permissions set on the directory and the file (.htacces)?

Also do you have your web server software configured to use the .htaccess file?

This only occurs when a client using Windows XP access the web site?

bhuether

3:18 pm on Mar 21, 2003 (gmt 0)

10+ Year Member



All is working now that I switched to the latest apache version. Not sure what was happening. But here is something odd: My site uses some PHP coding to rewrite dynamic pages into simple, static urls so that it is friendlier for search engines. On the remote site, when someone clicks one of these static urls, htaccess rewrites it back to its dynamic name, but the static url is displayed in the browser url line. That is how I prefer it. On my local site, all is fine, except that the browser shows the dynamic url name. I wonder what setting would control this? I have no idea how my host has their conf file set up.

-brian

The_Warden

4:13 pm on Mar 21, 2003 (gmt 0)

10+ Year Member



Well I'm glad you resolve the issue. As for your other question I'm not really sure what to say. I've never really had the need at this point to play with mod_rewrite so I'm not the best person to answer that question :-).