.htaccess
A directory-level configuration file, used for URL redirection, access control, and more, most commonly used in Apache and managed by SysOps .
Examples
Redirecting a single URL:
Redirect /index.html /some-other-page/
Redirecting an old directory to a new directory
RedirectRule ^old/(.*)$ /$1 [R=301,NC,L]
Hiding a folder
RedirectMatch 404 /\.git
Edit this page on GitHub