[!!!][TASK] Move deprecated entrypoints to deprecated.php
[Packages/TYPO3.CMS.git] / typo3 / .htaccess
1 <IfModule mod_rewrite.c>
2
3         RewriteEngine On
4
5         # Store the current location in an environment variable CWD to use
6         # mod_rewrite in .htaccess files without knowing the RewriteBase
7         RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$
8         RewriteRule ^.*$ - [E=CWD:%2]
9
10         # Redirect install tool files
11         RewriteRule ^install(\/?.*)$ %{ENV:CWD}sysext/install/Start/Install.php [R=307,L]
12
13         # Redirect old entry points
14         RewriteRule ^(ajax|alt_clickmenu|alt_db_navframe|alt_doc|alt_file_navframe|browser|db_new|dummy|init|login_frameset|logout|mod|move_el|show_item|tce_db|tce_file|thumbs)\.php$ %{ENV:CWD}deprecated.php [L]
15 </IfModule>