According to the protocol:
Access controls first.
Redirects next. Within the list of redirects, most specific first, most general last.
Rewrites last. Within the list of rewrites, most specific first, most general last.
Most specific means affects the smallest number of URL requests. Most general means affects the largest number of URL requests.
Two questions Gents:
(Using Apache 1.3 on a virtual host account.)
1) What about setting caching, and "Expires"? Where should they be positioned?
# Turn on Expires and set default to 0
# Set up caching on media files for 1 year
Header append Cache-Control "public"
I assume controlling visibility of the .htaccess file itself comes under "Access control" and should therefore be placed at the top of the file. Correct?
# Strong htaccess protection
<Files ~ "^.*\.([Hh][Tt][Aa])">
deny from all