I realise this doesn't help as such but I tried to get them to work a
couple of years ago and gave up as I couldn't get things to work.
If I recall, I had similar problems. Sometimes the .htaccess would be
applied, sometimes not. Sometimes changes would be applied, sometimes
not. V confusing and it wasn't that important so I gave up ( My personal
moto: If at first you don't succeed, there are a boat load more jobs you
could be doing so bugger it and move on)
On 21/02/2011 08:14, walt wrote:
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
_______________________________________________
Staffslug mailing list
Staffslug(a)staffslug.org.uk
http://lists.staffslug.org.uk/mailman/listinfo/staffslug
--
Gareth Westwood -- gareth(a)wffsystems.co.uk <mailto:gareth@wffsystems.co.uk>
WFF Systems Ltd -- 01785 227000
---
Main Office: Unit L, Beacon Business Park, Weston Road, Stafford,
Staffordshire, ST18 0WL
Registered Office: 24 Lyndhurst Grove, Stone, Staffordshire, ST15 8TP