<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Sat, 13 Jun 2026 14:27:51 +0000</lastBuildDate>
    <item>
      <title>(Apache) .htaccess deny access to xml files - beneberle</title>
      <link>https://snipplr.com/view/38727/htaccess-deny-access-to-xml-files</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 09 Aug 2010 01:05:03 UTC</pubDate>
      <guid>https://snipplr.com/view/38727/htaccess-deny-access-to-xml-files</guid>
    </item>
    <item>
      <title>(Apache) .htpasswd Basic Authentication - Create User/Pass with Encrypted Password - beneberle</title>
      <link>https://snipplr.com/view/38523/htpasswd-basic-authentication--create-userpass-with-encrypted-password</link>
      <description>&lt;p&gt;&lt;p&gt;Method 1&lt;/p&gt;&#13;
&#13;
&lt;p&gt;The -c directive creates a file .htpass in the directory somepath/outside/of/root/ containing a username user1. The -b directive means you must supply the password password1 at the command line when running the command - not recommended.&lt;/p&gt;&#13;
&#13;
&lt;p&gt;Method 2&lt;/p&gt;&#13;
&#13;
&lt;p&gt;The -c directive will create a file .htpass in the directory /somepath/outside/of/root/ containing a username user1. When run, the command will prompt you to enter the password, which will be obscured - recommended.&lt;/p&gt;&#13;
&#13;
&lt;p&gt;The -c directive will create the file, but also overwrite an existing file of the same name, so be careful. &lt;/p&gt;&#13;
&#13;
&lt;p&gt;Method 3&lt;/p&gt;&#13;
&#13;
&lt;p&gt;To add or edit a user/pass to an existing .htpass file, leave -b and -c out. Youâ€™ll be prompted for the new password.&lt;/p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 05 Aug 2010 15:10:55 UTC</pubDate>
      <guid>https://snipplr.com/view/38523/htpasswd-basic-authentication--create-userpass-with-encrypted-password</guid>
    </item>
    <item>
      <title>(Apache) .htaccess Basic Authentication - beneberle</title>
      <link>https://snipplr.com/view/38522/htaccess-basic-authentication</link>
      <description>&lt;p&gt;Put this in an .htaccess file to protect the directory it is in and anything below it. This requires that a file named .passwdfile exists in the directory \\\"/full/path/to/\\\" and contains at least one username/password combination.\\r\\n\\r\\nUse this snippet to generate the .passwdfile\\r\\n\\r\\n[Use this snippet to generate the .passwdfile](http://snipplr.com/view/38523/htpasswd-basic-authentication--create-userpass-with-encrypted-password/ \\\"htpasswd\\\")&lt;/p&gt;</description>
      <pubDate>Thu, 05 Aug 2010 14:45:56 UTC</pubDate>
      <guid>https://snipplr.com/view/38522/htaccess-basic-authentication</guid>
    </item>
    <item>
      <title>(Apache) .htaccess URL Rewrites - beneberle</title>
      <link>https://snipplr.com/view/37551/htaccess-url-rewrites</link>
      <description>&lt;p&gt;This is good for ensuring your domain is always either accessed with or without the www, which is important for SEO. It is also good if you have multiple domains that should resolve to the same site, and can redirect all requests to the main domain.&lt;/p&gt;</description>
      <pubDate>Fri, 16 Jul 2010 23:39:47 UTC</pubDate>
      <guid>https://snipplr.com/view/37551/htaccess-url-rewrites</guid>
    </item>
  </channel>
</rss>
