.htaccess Typo3

.htaccess Typo3

Was kann man in der .htaccess von TYPO3 alles finden? Ich hab mal hier das File etwas genauer angeschaut! \r\n#####\r\n#\r\n# Example .htaccess file\r\n#\r\n# This file contains a collection of almost everything you will need\r\n# for optimising TYPO3:\r\n#\r\n# – mod_rewrite (used for SimulateStaticDocuments, RealUrl, etc.)\r\n# – PHP optimisation\r\n#\r\n# If you want to use it, you’ll need to rename this file to ‚.htaccess‘.\r\n# (To make this work you will need to adjust the ‚AllowOverride’\r\n# directive in your Apache configuration file.)\r\n#\r\n# IMPORTANT: You may need to change this file depending on your TYPO3\r\n# installation!\r\n#\r\n# You should change every occurance of TYPO3root/ to the location where you\r\n# have your website in. For example:\r\n# If you have your website located at http://mysite.com/\r\n# then your TYPO3root/ is just empty (remove ‚TYPO3root/‘)\r\n# If you have your website located at http://mysite.com/some/path/\r\n# then your TYPO3root/ is some/path/ (search and replace)\r\n#\r\n# If you have problems with this file, try using the minimal\r\n# mod_rewrite.htaccess which is located in the typo3_src/misc/\r\n# directory of this installation.\r\n#\r\n# You can also use this configuration in your httpd.conf, but you’ll have\r\n# to modify some lines, see the comments (search for ‚httpd.conf‘)\r\n#\r\n# Using rewriting in your httpd.conf is much faster, btw.\r\n#\r\n# Questions about this file go to the matching Install mailing list,\r\n# see http://typo3.org/documentation/mailing-lists/\r\n#\r\n####\r\n\r\n### Begin: Rewrite stuff ###\r\n\r\n# Enable URL rewriting\r\nRewriteEngine On\r\n\r\n# To assist in debugging rewriting, you could use these lines\r\n# DON’T enable it for production!\r\n# This will only work in httpd.conf, not in .htaccess files\r\n#RewriteLog /var/log/apache/rewrite.log\r\n#RewriteLogLevel 9\r\n\r\n# If you use the RealUrl extension, then you’ll have to enable the next line.\r\n# You will have to change this path if your TYPO3 installation is located\r\n# in a subdirectory of the website root.\r\n#\r\n# If you place this in httpd.conf, you cannot use this directive in any case!\r\n#RewriteBase /\r\n\r\n# Stop rewrite processing if we are in the typo3/ directory\r\n# For httpd.conf, use this line instead of the next one:\r\n# RewriteRule ^/TYPO3root/(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php|favicon\.ico)/ – [L]\r\nRewriteRule ^(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php|favicon\.ico)/ – [L]\r\n\r\n# Redirect http://mysite/typo3 to http://mysite/typo3/index_re.php\r\n# and stop the rewrite processing\r\n# For httpd.conf, use this line instead of the next one:\r\n# RewriteRule ^/TYPO3root/typo3$ /TYPO3root/typo3/index.php [L]\r\nRewriteRule ^typo3$ typo3/index_re.php [L]\r\n\r\n# If the file/symlink/directory does not exist => Redirect to index.php\r\n# Important note: If you copy/paste this into httpd.conf instead\r\n# of .htaccess you will need to add ‚%{DOCUMENT_ROOT}‘ left to each\r\n# ‚%{REQUEST_FILENAME}‘ part.\r\nRewriteCond %{REQUEST_FILENAME} !-f\r\nRewriteCond %{REQUEST_FILENAME} !-d\r\nRewriteCond %{REQUEST_FILENAME} !-l\r\n\r\n# Main URL rewriting.\r\n\r\n# If you use Windows and SimulateStaticDocuments do not work, try adding a\r\n# slash (/) right before ‚index.php‘ below.\r\n\r\n# The example shows how to rewrite only *.html and *.pdf files to index.php\r\n# This may be helpful when using an extension that can generate PDF files\r\n# on the fly.\r\n# Example: RewriteRule .*\.(html|pdf)$ index.php [L]\r\n\r\n# For httpd.conf, use this line instead of the next one that has no ‚#‘:\r\n# RewriteRule .* /TYPO3root/index.php [L]\r\n\r\n# For use with the RealUrl extension, you might need to remove the\r\n# RewriteBase directive somewhere above and use this line instead of the\r\n# next one:\r\n# RewriteRule .* /index.php [L]\r\n\r\nRewriteRule .* index.php [L]\r\n\r\n### End: Rewrite stuff ###\r\n\r\n### Begin: PHP optimisation ###\r\n\r\n# All features below are left to the default if you don’t change this.\r\n# Simply remove the comment marks if you want to use some/all of these\r\n# settings\r\n\r\n# The PHP developers recommend disabling this feature. Do that.\r\n# It’s deprecated and is likely to be unsupported in future versions of PHP.\r\n#php_flag allow_call_time_pass_reference off\r\n\r\n# TYPO3 works fine with register_globals turned off.\r\n# This is highly recommended!\r\n#php_flag register_globals off\r\n\r\n# PHP may not declare the argv & argc variables (that would contain the GET\r\n# information).\r\n# TYPO3 doesn’t need this, so just turn it off.\r\n#php_flag register_argc_argv off\r\n\r\n# Magic quotes for runtime-generated data (data from SQL, exec(), etc.)\r\n#php_flag magic_quotes_gpc off\r\n\r\n# Order in which PHP registers GET, POST, Cookie and Built-in variables\r\n#php_value variables_order GPCS\r\n\r\n### End: PHP optimisation ###\r\n\r\n### Begin: Miscellaneous ###\r\n\r\n# Make sure that directory listings are disabled\r\n#Options -Indexes\r\n\r\n# There is a problem with Internet Explorer and mod_gzip on Apache servers.\r\n# For more information, see\r\n# http://typo3.org/documentation/document-library/rtehtmlarea/Tutorial-79/\r\n#mod_gzip_item_exclude file \.css$\r\n#mod_gzip_item_exclude file \.png$\r\n#mod_gzip_item_exclude file \.gif$\r\n#mod_gzip_item_exclude file \.jpg$\r\n#mod_gzip_item_exclude file \.jpeg$\r\n#mod_gzip_item_exclude file \.js$\r\n\r\n### End: Miscellaneous ###\r\n\r\n# Add your own rules here\r\n# …

Schreiben Sie einen Kommentar

Ihre E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.