Is this ok in the .htaccess file please?

Got this in a .htaccess file for a message board - is it all ok please ?

# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
#<IfModule mod_rewrite.c>
#RewriteEngine on
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#</IfModule>

ps - how do you make your .htaccess file so that no-one else but the owner can amend it please ?

Any help appreciated.

Dez.

Not sure about the purpose of your script, but looks like familiar code to me. Not too sure of its function.

Set your file permissions through FTP, usually just right click on the .htaccess file->file permissions. I think “755” would do the trick.

Dez,

That’s merely setting an environment variable, HTTP_AUTHORIZATION, provided you have HTTP:Authorization set. I don’t use that so I’m not sure how to set that Apache variable - now why.

Regards,

DK

Thanks, it’s appreciated. Is 644 any better ?

Thanks David, is it a good thing to have ?

Dez,

I really don’t know. That said, if someone generated the code for it (and it exists in the Apache world), I’d think that it would be a good thing.

Regards,

DK