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 to your own domain name with the www
Redirect Permanent /

2. 301 redirect with .htaccess file

301 Permanent redirect

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

# User Added 301
RewriteCond %{HTTP_HOST} ^
RewriteRule ^(.*)$$1 [R=301,L]
# End of user added 301

Subscribe to feed
Click to rate this post!
[Total: 0 Average: 0]

Leave a Reply