[TYPO3-english] Allow .htaccess in $TYPO3_CONF_VARS['EXT']['excludeForPackaging']

Jigal van Hemert jigal at xs4all.nl
Tue Feb 28 16:46:52 CET 2012

On 28-2-2012 15:06, Josef F. Glatz wrote:
> I want to configure $TYPO3_CONF_VARS['EXT']['excludeForPackaging']
> in the TYPO3 Global Configuration, that it include .htaccess files.
> The default value for the ['EXT']['excludeForPackaging'] is:
> (CVS|\\..*|.*~|.*\\.bak)
> As you can see, all files ".*" are excluded while packaging a TYPO3
> extension via extension manager. Which syntax do I need, to exclude all
> ".*" files except ".htaccess" ?

Not tested, not perfect, but I think it will do the job in normal cases:


\\..*(?!htaccess) will match a dot possibly followed by something but it 
can't end with htaccess. So it will also include .myhtaccess in 
packaging but that won't be a big problem I guess.

Kind regards / met vriendelijke groet,

Jigal van Hemert.

More information about the TYPO3-english mailing list