Skip to content

Tag Archives: htaccess

htaccess 301 redirect from all pages to one page


RedirectMatch permanent /.*

How To Speak HTTP To .htaccess Login


The raw HTTP to access a directory that is protected with .htaccess: Authorization: BASIC <base64encoded_user_pass> Where base64encoded_user_pass is a base64 encoded string from a string "username:password". With imaginative username my_username and password my_password, i.e. "my_username:my_password", the result is Authorization: BASIC bXlfdXNlcm5hbWU6bXlfcGFzc3dvcmQ= (You may want to use some online tools, like opinionatedgeek's Base 64 Encoder.) And, […]