bmack/TYPO3.CMS/master/typo3/.htaccess - Htaccess File

bmack/TYPO3.CMS/master/typo3/.htaccess

<IfModule mod_rewrite.c>

  RewriteEngine On
  # Use options from the htaccess in the main directory of the frontend in order
  # to have versioned static files and TYPO3_CONTEXT working
  RewriteOptions inherit

  # Store the current location in an environment variable CWD to use
  # mod_rewrite in .htaccess files without knowing the RewriteBase
  RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)1$
  RewriteRule ^.*$ - [E=CWD:%2]

  # Block non-existing .map files, which are requested by some browsers.
  # We need to do that this way here, because otherwise the rewrite logic
  # of the parent folder will redirect such a request to the typo3/index.php
  # causing the BE (login) to be returned.
  # This is due to the nature of 'RewriteOptions inherit', which copies the rules
  # virtually into this file (at the end) and then the defined rules, which include
  # 'typo3/' will not match in the context of this file.
  RewriteRule .map$ - [F]

  # Redirect install tool files
  RewriteRule ^install(/?.*)$ %{ENV:CWD}sysext/install/Start/Install.php [R=307,L]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
ENV, REQUEST_URI, static

Comments

Apache