SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Mar 2010
    Location
    UK
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    File encoding of htaccess?

    Does the encoding (ASCII, UTF-8, etc.) of an htaccess file matter?

    Mine is UTF-8, purely because that's what I have Notepad++ set to (having learned the hard way). But I stumbled upon a brief comment in an article which stated
    Remember to upload .htaccess files, and .htpasswd files using ASCII mode.

  2. #2
    secure webapps for all Aleksejs's Avatar
    Join Date
    Apr 2008
    Location
    Riga, Latvia
    Posts
    755
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If file is Utf8-without-BOM, and if you do not use characters with diacritical marks "glāžšķūņrūķīši" then file can be utf8. Transfer in binary vs ASCII mode deals with line feed differences in operating systems.


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
  •