X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/blobdiff_plain/bbf7cd67ffba2904035e0af20f27e13ef16830e4..39796fbd2d93e2ea2b071ac77fa59e4bf0b34bb6:/_.htaccess diff --git a/_.htaccess b/_.htaccess index 8b8b81a5855..23fa98b7fe4 100644 --- a/_.htaccess +++ b/_.htaccess @@ -83,6 +83,14 @@ RewriteEngine On # Change this path, if your TYPO3 installation is located in a subdirectory of the website root. #RewriteBase / +# Rules to set ApplicationContext based on hostname +#RewriteCond %{HTTP_HOST} ^dev\.example\.com$ +#RewriteRule .? - [E=TYPO3_CONTEXT:Development] +#RewriteCond %{HTTP_HOST} ^staging\.example\.com$ +#RewriteRule .? - [E=TYPO3_CONTEXT:Production/Staging] +#RewriteCond %{HTTP_HOST} ^www\.example\.com$ +#RewriteRule .? - [E=TYPO3_CONTEXT:Production] + # Rule for versioned static files, configured through: # - $TYPO3_CONF_VARS['BE']['versionNumberInFilename'] # - $TYPO3_CONF_VARS['FE']['versionNumberInFilename'] @@ -105,8 +113,8 @@ RewriteRule ^typo3conf/ext/[^/]+/Resources/Private/ - [F] # Stop rewrite processing, if we are in the typo3/ directory. # For httpd.conf, use this line instead of the next one: -# RewriteRule ^/TYPO3root/(typo3/|t3lib/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L] -RewriteRule ^(typo3/|t3lib/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L] +# RewriteRule ^/TYPO3root/(typo3/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L] +RewriteRule ^(typo3/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L] # If the file/symlink/directory does not exist => Redirect to index.php. # For httpd.conf, you need to prefix each '%{REQUEST_FILENAME}' with '%{DOCUMENT_ROOT}'.