0
|
Hello Marco, Great question about working with Addon domains. Normally, most people visiting your site will not try the different URLs for an Addon domain, but we can understand why may not want to allow these different methods of accessing the site. Fortunately, this can be controlled within your Addon domain's .htaccess file To send all traffic through the www URL for your Addon domain, the code will follow this format: RewriteEngine On RewriteCond %{HTTP_HOST} !^www.addondomain\.com [NC] RewriteRule ^(.*)$ http://www.addondomain.com/$1 [R=301,L] In your case, it would be: RewriteEngine On RewriteCond %{HTTP_HOST} !^www.professionaldu.com\.com [NC] RewriteRule ^(.*)$ http://www.professionaldu.com.com/$1 [R=301,L] To send all traffic through the non-www version of your Addon domain's URL, the code will follow this format: RewriteEngine On RewriteCond %{HTTP_HOST} !^addondomain\.com [NC] RewriteRule ^(.*)$ http://addondomain.com/$1 [R=301,L] In your case, it would be: RewriteEngine On RewriteCond %{HTTP_HOST} !^professionaldu\.com [NC] RewriteRule ^(.*)$ http://professionaldu.com/$1 [R=301,L] Please let us know if you have any additional questions or need further assistance. Regards, Christi N. |
Email: | support@WebHostingHub.com | Ticket: | Submit a Support Ticket |
---|---|---|---|
Call: |
877-595-4HUB (4482) 757-416-6627 (Intl.) |
Chat: | Click To Chat Now |