Index: _.htaccess =================================================================== --- _.htaccess (Revision 10162) +++ _.htaccess (Arbeitskopie) @@ -1,58 +1,50 @@ ##### # -# Example .htaccess file +# Example .htaccess file for TYPO3 CMS - for use with Apache Webserver # # This file includes settings for the following configuration options: # # - Compression via TYPO3 # - Settings for mod_rewrite (URL-Rewriting) # - PHP optimisation -# - Compression using Apache # - Miscellaneous # -# If you want to use it, you have to copy it to the root folder of your -# TYPO3 installation and rename it to '.htaccess'. -# (To make .htaccess files work you might need to adjust the 'AllowOverride' -# directive in your Apache configuration file.) +# If you want to use it, you have to copy it to the root folder of your TYPO3 installation (if its +# not there already) and rename it to '.htaccess'. To make .htaccess files work, you might need to +# adjust the 'AllowOverride' directive in your Apache configuration file. # -# IMPORTANT: You may need to change this file depending on your TYPO3 -# installation! -# Lines starting with a # are treated as comment and ignored by the web -# server. +# IMPORTANT: You may need to change this file depending on your TYPO3 installation! +# +# Lines starting with a # are treated as comment and ignored by the web server. # -# You should change every occurance of TYPO3root/ to the location where you -# have your website in. For example: +# You should change every occurance of TYPO3root/ to the location where you have your website in. +# For example: # If you have your website located at http://mysite.com/ # then your TYPO3root/ is just empty (remove 'TYPO3root/') # If you have your website located at http://mysite.com/some/path/ # then your TYPO3root/ is some/path/ (search and replace) # -# You can also use this configuration in your httpd.conf, but then you have -# to modify some lines, see the comments (search for 'httpd.conf') +# You can also use this configuration in your httpd.conf, but then you have to modify some lines, +# see the comments (search for 'httpd.conf') # -# Using rewriting in your httpd.conf is much faster. +# Questions about this file go to the matching Install mailing list, see +# http://typo3.org/documentation/mailing-lists/ # -# Questions about this file go to the matching Install mailing list, -# see http://typo3.org/documentation/mailing-lists/ -# #### ### Begin: Compression via TYPO3 ### -# Allow compressed .js and .css files -# Uncomment the following lines, if you have -# ['BE']['compressionLevel'] set. +# Compressing resource files will save bandwidth and so improve loading speed especially for users +# with slower internet connections. TYPO3 can compress the .js and .css files for you. +# 1) Uncomment the following lines and +# 2) Set $TYPO3_CONF_VARS['BE']['compressionLevel'] = '9' -# If the Apache modules mod_gzip or mod_deflate are activated, you should -# use their compression functions instead. -# You find an example configuration below. - # -# AddType "text/javascript" .gzip +# AddType "text/javascript" .gzip # # -# AddType "text/css" .gzip +# AddType "text/css" .gzip # #AddEncoding gzip .gzip @@ -61,23 +53,20 @@ ### Begin: Settings for mod_rewrite ### +# You need rewriting, if you use a URL-Rewriting extension (RealURL, CoolUri, SimulateStatic). + # Enable URL rewriting RewriteEngine On -# If you use an URL-Rewriting extension (RealURL, CoolUri, SimulateStatic), -# then you have to enable the next line. -# -# You have to change this path, if your TYPO3 installation is located -# in a subdirectory of the website root. -# -# If you place this in httpd.conf, you cannot use this directive in any case! +# Change this path, if your TYPO3 installation is located in a subdirectory of the website root. #RewriteBase / -# Rule for versioned static files (see $TYPO3_CONF_VARS[BE][versionNumberInFilename] -# and $TYPO3_CONF_VARS[FE][versionNumberInFilename]) -# IMPORTANT: This rule has to be the very first rule in order to work! +# Rule for versioned static files, configured through: +# - $TYPO3_CONF_VARS['BE']['versionNumberInFilename'] +# - $TYPO3_CONF_VARS['FE']['versionNumberInFilename'] +# IMPORTANT: This rule has to be the very first RewriteCond in order to work! RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ $1.$3 [L] @@ -87,39 +76,20 @@ # RewriteRule ^/TYPO3root/(typo3/|t3lib/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L] RewriteRule ^(typo3/|t3lib/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L] -# Redirect http://mysite/typo3 to http://mysite/typo3/index_re.php -# and stop the rewrite processing. +# Redirect http://example.com/typo3 to http://example.com/typo3/index_re.php and stop the rewrite processing. # For httpd.conf, use this line instead of the next one: # RewriteRule ^/TYPO3root/typo3$ /TYPO3root/typo3/index.php [L] RewriteRule ^typo3$ typo3/index_re.php [L] # If the file/symlink/directory does not exist => Redirect to index.php. -# Important note: If you copy/paste this into httpd.conf instead -# of .htaccess, you need to add '%{DOCUMENT_ROOT}' left to each -# '%{REQUEST_FILENAME}' part. +# For httpd.conf, you need to prefix each '%{REQUEST_FILENAME}' with '%{DOCUMENT_ROOT}'. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l # Main URL rewriting. - -# If you use Windows and SimulateStaticDocuments does not work, try adding -# a slash (/) right before 'index.php' below. - -# The example shows how to rewrite only *.html and *.pdf files to -# index.php. -# This may be helpful when using an extension that can generate PDF files -# on the fly. -# Example: RewriteRule .*\.(html|pdf)$ index.php [L] - -# For httpd.conf, use this line instead of the next one that has no '#': +# For httpd.conf, use this line instead of the next one: # RewriteRule .* /TYPO3root/index.php [L] - -# For use with the RealURL extension, you might need to remove the -# RewriteBase directive some lines above and use this line instead of the -# next one: -# RewriteRule .* /index.php [L] - RewriteRule .* index.php [L] @@ -129,8 +99,7 @@ ### Begin: PHP optimisation ### -# If you do not change the following settings, the default values will -# be used. +# If you do not change the following settings, the default values will be used. # TYPO3 works fine with register_globals turned off. # This is highly recommended, if your web server has it turned on. @@ -139,46 +108,7 @@ ### End: PHP optimisation ### -### Begin: Compression using Apache ### -# With the following settings you can make Apache compress text files, -# which will save bandwidth and so improve loading speed especially for -# users with slower internet connections. - -# Compressing files for Apache 1.3 -# -#mod_gzip_on Yes -# There is a problem with Internet Explorer and mod_gzip on Apache servers. -#mod_gzip_item_exclude file \.css$ -#mod_gzip_item_exclude file \.js$ -# The size of images generally won't be reduced enough that it's worth -# compressing them. -#mod_gzip_item_exclude file \.png$ -#mod_gzip_item_exclude file \.gif$ -#mod_gzip_item_exclude file \.jpg$ -#mod_gzip_item_exclude file \.jpeg$ -# - -# Compressing files for Apache 2.x -# -# Compress HTML, Text, CSS, JavaScript and XML files. -#AddOutputFilterByType DEFLATE text/plain text/html text/xml -#AddOutputFilterByType DEFLATE text/css text/javascript -#AddOutputFilterByType DEFLATE application/xml application/xhtml+xml -#AddOutputFilterByType DEFLATE application/rss+xml -#AddOutputFilterByType DEFLATE application/javascript application/x-javascript -# Needed for compatibility with Netscape 4.x, which only supports compression -# for HTML files, and for Netscape 4.06-4.08, which support no compression. -#BrowserMatch ^Mozilla/4 gzip-only-text/html -#BrowserMatch ^Mozilla/4.0[678] no-gzip -# Activate compression again for MSIE, which masquerades as Netscape. -# There compression works correctly. -#BrowserMatch \bMSIE !no-gzip !gzip-only-text/html -# - -### End: Compression using Apache ### - - ### Begin: Miscellaneous ### # Make sure that directory listings are disabled.