[TYPO3-english] New TYPO3 site

Christopher Torgalson bedlamhotel at gmail.com
Mon Mar 16 15:51:04 CET 2009


Hi,

On Mon, Mar 16, 2009 at 3:59 AM, Denyer Ec <denyerec at gmail.com> wrote:
> What would be the best way to achieve this? It's something that has
> occurred to me on many occasiosn...

A mix of <FilesMatch> [1] and 'Options' [2] (on Apache at least). As a
working example, Drupal's .htaccess file includes the following lines:

# Protect files and directories from prying eyes.
<FilesMatch "\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template)$">
  Order allow,deny
</FilesMatch>

# Don't show directory listings for URLs which map to a directory.
Options -Indexes

I took a quick look at a local TYPO3 4.2 install to see if there's
something similar in the advanced .htaccess file that ships with
TYPO3, but I can't find it anymore…


[1] http://httpd.apache.org/docs/1.3/mod/core.html#filesmatch
[2] http://httpd.apache.org/docs/1.3/mod/core.html#options
-- 
Christopher Torgalson
http://www.typo3apprentice.com/


More information about the TYPO3-english mailing list