[FOLLOWUP][!!!][TASK] Move deprecated entrypoints to deprecated.php
[Packages/TYPO3.CMS.git] / typo3 / .htaccess
1 <IfModule mod_rewrite.c>
2
3 RewriteEngine On
4 # Use options from the htaccess in the main directory of the frontend in order
5 # to have versioned static files working
6 RewriteOptions inherit
7
8 # Store the current location in an environment variable CWD to use
9 # mod_rewrite in .htaccess files without knowing the RewriteBase
10 RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$
11 RewriteRule ^.*$ - [E=CWD:%2]
12
13 # Redirect install tool files
14 RewriteRule ^install(\/?.*)$ %{ENV:CWD}sysext/install/Start/Install.php [R=307,L]
15
16 # Redirect old entry points
17 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
18 </IfModule>