Thanks for responding Tom.
Well I don't know how else to put it. I cannot get .htaccess to work.
Pretty unambiguous as far as I and few others are concerned.
But you're right, so I'll break it down a bit.
1) The presence of .htaccess containing valid code in a valid doc
directory should trigger an override provided Apache is instructed to accept
overrides and the permissions are set correctly.
2) The above conditions have been met.
3) .htaccess is being ignored.
Ultimately I would like to control directory access by way of .htaccess
using the Authentication options. My main concern at the moment is to
implement a rewrite as the first function for .htaccess but I cannot even
get a simple error trap such as this one to work:
ErrorDocument 404 /notfound.html
This is the code for the rewrite (which has to do with CodeIgniter so I can
lose the 'index.php' in the url) is as follows:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
Hope this helps clarify things. Many thanks, Walt
-----Original Message-----
From: staffslug-bounces(a)staffslug.org.uk
[mailto:staffslug-bounces@staffslug.org.uk] On Behalf Of Tom Hill
Sent: 20 February 2011 19:16
To: staffslug(a)staffslug.org.uk
Subject: Re: [Staffslug] .htaccess
On Sun, 2011-02-20 at 17:35 +0000, walt wrote:
Has anyone got a surefire way of getting the .htaccess in Apache 2 to
work?
The platform is Suse11.3 (VM). I'd truly like to understand and solve
this one.
Stop here. Please re-write this paragraph (or preceed it) with an
explanation of what you're actually trying to *do* with your .htaccess file.
There are a million and one things that 'getting the .htaccess [file] to
work' could potentially mean.
Once you've done that, I'm sure the rest of the post will make more sense.
;)
Tom
_______________________________________________
Staffslug mailing list
Staffslug(a)staffslug.org.uk
http://lists.staffslug.org.uk/mailman/listinfo/staffslug