This is a discussion on Inability to get Apache to use mod_rewrite within the Apache Web Server forums, part of the Web Server and Related Forums category; I'm using Apache/2.0.52 (Win32) PHP/4.4.0 as a test site for my web site. ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I'm using Apache/2.0.52 (Win32) PHP/4.4.0 as a test site for my web
site. The test site contains a copy of the .htaccess file from the web server and this works perfectly. My test site phpadmin call shows that mod_rewrite is loaded but I cannot get it to read the .htaccess file. I've read several postings in this newsgroup and tried various solutions without success. Using previous posts, I've placed a line in the .htaccess file which simply states "BOGUS" and there is no error message. The apache log file simply states [Sat Nov 12 12:48:25 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/WWW/Xcalibre_phpOct05/page67.html The http.conf file has these lines to load mod_rewrite and to gain access to .htaccess: LoadModule rewrite_module modules/mod_rewrite.so AccessFileName .htaccess I have also added a hash to this line as suggested in a posting to someone else by HansH: #AllowOverride None Any help would be much appreciated -- Stephen Layton |
|
|||
|
willockguard-newsgoup@yahoo.co.uk wrote:
> I have also added a hash to this line as suggested in a posting to > someone else by HansH: > #AllowOverride None Make sure, you've set AllowOverride to FileInfo for your <Directoty>-Container for the htdocs folder, i.e. <Directoty "C:/Program Files/Apache Group/Apache2/htdocs"> AllowOverride FileInfo Options +FollowSymlinks </Directory> Don't edit <Directoty />, but the container containing the path for your htdocs. -- Robert |
|
|||
|
In message <43760abb$1_1@x-privat.org>, Robert Ionescu
<robsiegen@gmail.com> writes >willockguard-newsgoup@yahoo.co.uk wrote: >> I have also added a hash to this line as suggested in a posting to >>someone else by HansH: >> #AllowOverride None > >Make sure, you've set AllowOverride to FileInfo for your ><Directoty>-Container for the htdocs folder, i.e. > ><Directoty "C:/Program Files/Apache Group/Apache2/htdocs"> > AllowOverride FileInfo > Options +FollowSymlinks ></Directory> > >Don't edit <Directoty />, but the container containing the path for >your htdocs. > Robert Many thanks for your reply. It now works perfectly. With thanks. -- Stephen Layton |