Sentora Perminant redirect

How to do a URL redirect from HTTP to HTTPS (Sentora).

I'm sure there are different ways to redirect a url but here are 2 of my tried an tested methods that you could use to add a permanent redirect to your site URL.

Method 1.
Add a URL redirect to your Apache Config

1. Log in to your Sentora control panel
2. From the main menu go to Admin select Modual Admin
3. Select Apache Config
4. Got to the bottom of the page and select the URL that you want to redirect from Override a Virtual Host Setting dropdown
5. Add the following code changing yoururl.com to your own domain name with the www
Redirect Permanent / http://www.yoururl.com/

2. 301 redirect with .htaccess file
301 Permanent redirect


Add the following code to your .htaccess file make sure to change yoururl.com first!

# User Added 301
RewriteCond %{HTTP_HOST} ^yoururl.com
RewriteRule ^(.*)$ http://www.yoururl.com/$1 [R=301,L]
# End of user added 301
Sentora Perminant redirect Sentora Perminant redirect Reviewed by Taner Temel on 19:04:00 Rating: 5
Post a Comment
Powered by Blogger.