.htaccess

From WikiWiki
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

redirect to https

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://mendelonline.be/$1 [R,L]