Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
This article contains information about redirecting your site.
These rules should be added to your .htaccess file located in your

Step 1: Add The Following Rules 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://yourdomain.com%{REQUEST_URI} [NS,R,L]

...

*replace yourdomain.com with the domain you need to redirect to.
For more information on rewrite rules you can go to Apache.org

A video on creating redirects on cPanel can be found here. Note that some applications like wordpress will use redirects already in your .htaccess file to function. Because of this, you may need to edit your .htaccess file and move the redirects cPanel creates above the ones already in your .htaccess file.

Content by Label
showLabelsfalse
max5
spacesMID
showSpacefalse
sortmodified
showSpacefalse
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "MID"
labelskb-how-to-article

Page properties
hiddentrue
Related issues