Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 895 Bytes

Apache.md

File metadata and controls

25 lines (19 loc) · 895 Bytes
  • set config in a [[.htaccess]] file

  • [[Apache mod_proxy]]

  • [[Apache mod_rewrite]]

  • securing an apache directory with a password

http://www.addedbytes.com/blog/code/password-protect-a-directory-with-htaccess/

To redirect all pages of a site to the home page of another site

Options +FollowSymLinks
RewriteEngine on
RedirectMatch (.*)$ http://www.thalweg.fr

If using redirect directive the path is preserved, but in this case, we wanted all requests to old domain to be done to the other domain. It's not the cleaner method, as google couldn't identify each old page / new page association. Would be preferible that all path where mapped to all domain, but don't know how to remove the dir part of the domain 5.9.82.45/dev/thalweg/www/