Revision 8032
Added by Aaron Marcuse-Kubitza over 11 years ago
.htaccess | ||
---|---|---|
1 | 1 |
RewriteEngine on |
2 | 2 |
RewriteOptions inherit |
3 | 3 |
|
4 |
Redirect /SALVIAS/users/ /servers/nimoy/salvias_users/ |
|
4 |
RewriteRule ^(.*/)?$ /servers/nimoy/salvias_users/$0 [discardpath,noescape,last] |
Also available in: Unified diff
web/main/**/.htaccess: Use RewriteRule instead of RedirectMatch to handle incremental redirects internally instead of issuing a (much slower) redirect to the web browser each time. This also handles edge cases better, as [last] RewriteRules can be used to control when to forward control to a subdir, and doesn't require prepending the path to the dir the .htaccess file is in. Note that this requires all gateway dirs (dirs with subdirs) to contain special RewriteRules to avoid redirecting subdir paths and handle DirectoryIndex; see web/main/DwC/.htaccess. Also note that the regexp of a catch-all RewriteRule must exactly follow the template for internal or external redirects; see web/main/SALVIAS/db/.htaccess for internal redirects and web/main/DwC/history/.htaccess for external redirects.