htaccess setup

permanent (301) redirect

redirect all pages to the root or one page of a new domain

redirect one file:

redirect subdomain to the root domain keeping the url

redirect subdomain to the root domain without keeping the url

 block / disable directory indexing

allow access to only one IP

custom message for 403 access denied