Tag Archives: Ltdirectorygt

Apache configuration for redirect using httpd.conf and .htaccess

File: /etc/httpd/conf/httpd.conf (older systems used apache.conf) Default: This disables the processing of .htaccess files for the system.  <Directory />  AllowOverride None  </Directory> or for a specified directory:  <Directory /home/domain/public_html>  AllowOverride None  </Directory> Specify directory containing site or page to be redirected:  <Directory /root-directory-of-web-site-to-be-redirected>  AllowOverride All  </Directory>  AllowOverride parameters: AuthConfig FileInfo Indexes Limits Options File: .htaccess Create a file /home/domain/public_html/.htaccess in that directory of the domain Read More →