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://suncoasthosting.com.au%{REQUEST_URI} [NS,R,L]

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

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

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

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

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

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

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How do I reset my password for osCommerce?

osCommerce uses .htaccess and .htpasswd format files to manage the protection on the admin...

Can I add my own CGI scripts?

Our LINUX web servers have the capability to run CGI scripts in your own 'cgi-bin' directory....

How to Stop A Directory Index From Being Shown

Sometimes, for one reason or another, you will have no index file in your directory. This will,...

How do I perform a trace route?

Traceroute (tracert) works by sending a packet to an open UDP port on a destination machine. For...

How do I make a subfolder the main folder for my main domain?

The main domain on the hosting account uses the public_html folder for all of its website files....