a dollar a day hosting

Call Us Today:1300 362 374

Portal Home > Knowledgebase > Website - Advanced Help > How do I create a redirect for my site?


How do I create a redirect for my site?




The redirect option is available in your control panel. Please login into your control pane and click Redirect for setting redirections for your website.

If you are doing redirection manually, these rules should be added to your .htaccess file located in your public_html folder.

This rule will redirect all none SSL traffic to the SSL (https) portion of your site: 

RewriteEngine On
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^ https://adollaradayhosting.com.au%{REQUEST_URI} [NS,R,L]

In addition use one of the following rules, www.adollaradayhosting.com.au is different from adollaradayhosting.com.au. You will need to redirect all traffic from one to other.

If your SSL is for www.adollaradayhosting.com.au you will want to use the first rule to redirect all adollaradayhosting.com.au traffic to www.adollaradayhosting.com.au. This rule will direct all traffic to adollaradayhosting.com.au to www.adollaradayhosting.com.au.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^adollaradayhosting.com.au$
RewriteCond %{REQUEST_URI} !^.*www.*$
RewriteRule ^(.*)$ http://www.adollaradayhosting.com.au [R=301]

If your SSL is for adollaradayhosting.com.au you will want to use the first rule to redirect all www.adollaradayhosting.com.au traffic to adollaradayhosting.com.au. This rule will direct all traffic to www.adollaradayhosting.com.au to adollaradayhosting.com.au.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.adollaradayhosting.com.au$
RewriteRule ^(.*)$ http://adollaradayhosting.com.au [R=301]

*replace adollaradayhosting.com.au with the domain you need to redirect to.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read