by Aromal Rajagopal | Aug 26, 2009 | Quick fixes, Technical |
Issue : The old domain ( with and without ‘www’ ) needs to be forwarded to a sub-folder of the new domain. Solution : Use the following htaccess code : RewriteEngine on RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR] RewriteCond %{HTTP_HOST}...
by Aromal Rajagopal | Jul 10, 2009 | Quick fixes, Technical |
Issue : When someone tries to access the site through the insecure URL (http) , it should redirect ( to https ) automatically. Fix : This can be easily achieved by putting the following code in the .htaccess file under ‘public_html’ folder : RewriteEngine...
by Aromal Rajagopal | Jun 18, 2009 | Quick fixes, Technical |
Issue : webmail.domain.tld does not work. Fix : 1. Create an ‘A’ record for the sub-domain ‘webmail’ in the DNS zone file. It should look like : domain.com. IN A XX.XX.XXX.XXX localhost.domain.com. IN A 127.0.0.1 domain.com. IN MX 0 domain.com....
by Aromal Rajagopal | Jun 18, 2009 | Quick fixes, Technical |
To redirect a domain to its own sub-folder, use the following code in your .htaccess file : RewriteEngine On RewriteCond %{HTTP_HOST}%{REQUEST_URI} ^present site.com/$ [NC,OR] RewriteCond %{HTTP_HOST}%{REQUEST_URI} ^www.present site.com/$ [NC] RewriteRule ^(.*)$...
by Aromal Rajagopal | Mar 14, 2009 | Quick fixes, Technical |
Issue : While accessing the subfolder of an addon domain using httpd://www.addondomain.com/subfolder the URL changes to httpd://www.subdomain.maindomain.com/subfolder but at the same time, httpd://www.addondomain.com/subfolder/ (the one with trailing slash) works...