diff --git a/.htaccess b/.htaccess index 30153d83a..4cddd2496 100644 --- a/.htaccess +++ b/.htaccess @@ -2,8 +2,9 @@ Options +FollowSymlinks RewriteEngine On -# Scalar pages have default views that are called when a URI has no file extension -# Turn off the MultiView option (if it's on) so it doesn't conflict +# Scalar pages have default views that are called when a URI has no +# file extension Turn off the MultiView option (if it's on) so it +# doesn't conflict Options -MultiViews # To route all requests to a maintenance page, uncomment these lines @@ -21,25 +22,30 @@ RewriteCond $1 !maintenance.html$ RewriteCond $1 !codeigniter.php$ RewriteRule ^([^/]+)$ - [R=404,L] -# To route the home page (book index) to some place else, uncomment these lines +# To route the home page (book index) to some place else, uncomment +# these lines #RewriteCond %{REQUEST_FILENAME} ^/Library/WebServer/scalar\.usc\.edu/anvc/index\.php$ #RewriteRule (.*) /Library/WebServer/scalar.usc.edu/anvc_site/ [L] #RewriteCond %{REQUEST_FILENAME} ^/Library/WebServer/scalar\.usc\.edu/anvc/$ #RewriteRule (.*) /Library/WebServer/scalar.usc.edu/anvc_site/ [L] -# If your server is running SSL, uncomment these lines to force all requests through https +# If your server is running SSL, uncomment these lines to force all +# requests through https #RewriteCond %{SERVER_PORT} 80 #RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] -# To protect against malicious file uploads (e.g., PHP files) uncomment these lines +# To protect against malicious file uploads (e.g., PHP files) +# uncomment these lines #RewriteCond %{REQUEST_FILENAME} -f #RewriteCond %{REQUEST_FILENAME} (\.php)$ [NC] #RewriteCond $1 !^system/(.*) [NC] #RewriteCond $1 !^codeigniter.php(/.*)?$ [NC] #RewriteRule (.*) - [R=404,L] -# To route to an alternative file uploads path (e.g. "uploads" directory) uncomment these lines -# or change to the desired location. This should match the localDir specified in local_settings.php +# To route to an alternative file uploads path (e.g. "uploads" +# directory) uncomment these lines and change to the desired +# location. This should match the localDir specified in +# local_settings.php #RewriteCond "%{CONTEXT_DOCUMENT_ROOT}/uploads/$1" -f #RewriteRule (.+) "%{CONTEXT_DOCUMENT_ROOT}/uploads/$1" [L]