.htaccess

From WikiWiki
Revision as of 17:44, 11 April 2017 by Mendel (talk | contribs) (Created page with "apache's config file = redirects = <syntaxhighlight lang="text"> Redirect /file.exe https://facebook.com/file.exe Redirect 301 /file.exe /file/file.exe </syntaxhighlight> =...")
(change visibility) (diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

apache's config file

redirects

Redirect /file.exe https://facebook.com/file.exe
Redirect 301 /file.exe /file/file.exe

directory browsing

Options +Indexes 
IndexOptions +FancyIndexing
 Satisfy Any

password protecting

AuthGroupFile /dev/null
AuthType Basic
AuthUserFile /somedirectory/public_html/somedirectory/.htpasswd
AuthName "This page needs authentication"
require valid-user