SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Wizard
    Join Date
    Jun 2005
    Posts
    1,416
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Is this ok in the .htaccess file please ?

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

    Code:
    # 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.

  2. #2
    SitePoint Enthusiast DayinDayout's Avatar
    Join Date
    Apr 2010
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  3. #3
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,604
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    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
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  4. #4
    SitePoint Wizard
    Join Date
    Jun 2005
    Posts
    1,416
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DayinDayout View Post
    Set your file permissions through FTP, usually just right click on the .htaccess file->file permissions. I think "755" would do the trick.
    Thanks, it's appreciated. Is 644 any better ?

  5. #5
    SitePoint Wizard
    Join Date
    Jun 2005
    Posts
    1,416
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dklynn View Post
    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 David, is it a good thing to have ?

  6. #6
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,604
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    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
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •