Bluehost.com Web Hosting $6.95

Inability to get Apache to use mod_rewrite

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. ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-12-2005
willockguard-newsgoup@yahoo.co.uk
 
Posts: n/a
Default Inability to get Apache to use mod_rewrite

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




  #2 (permalink)  
Old 11-12-2005
Robert Ionescu
 
Posts: n/a
Default Re: Inability to get Apache to use mod_rewrite

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
  #3 (permalink)  
Old 11-12-2005
willockguard-newsgoup@yahoo.co.uk
 
Posts: n/a
Default Re: Inability to get Apache to use mod_rewrite

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




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:43 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0