From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Publishing htaccess files with a project Date: Sat, 16 Oct 2010 18:39:16 +0200 Message-ID: <87pqvam6rv.fsf@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=39748 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P79n2-0000S2-8G for emacs-orgmode@gnu.org; Sat, 16 Oct 2010 12:39:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P79n1-00044v-CL for emacs-orgmode@gnu.org; Sat, 16 Oct 2010 12:39:24 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:44931 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1P79n0-00044E-WE for emacs-orgmode@gnu.org; Sat, 16 Oct 2010 12:39:23 -0400 In-Reply-To: (Jeff Horn's message of "Fri, 15 Oct 2010 21:01:46 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jeff Horn Cc: Org-mode ml Jeff Horn writes: > Hi orgsters, > > I'm wondering how I should publish .htaccess files? My current setup > is a source directory under ~/org/, which is kept at Dropbox, and a > publishing directory under ~/Sites/, which is not. Since data loss is > pyschologically crippling, I like to keep *all* my source files > (images, css, whatnot) in the source directory. > > I have a static project setup that pushes css, images, and a few other > filetypes to the publishing directory. How can I do the same with > .htaccess? I tried adding "htaccess" to :base-extenstions, but that > unfortunately did nothing. Hi Jeff, use the property :include : (setq org-publish-project-alist '(("org-htaccess" :base-directory "~/org/" :recursive t :base-extension "xxx" ;; non-exestent :include (".htaccess") :publishing-directory "~/public_html/" :publishing-function org-publish-attachment) ... and make "org-htaccess" part of your compound project. Sebastian