Welcome to UltratechHost Forum, Guest. Please take the time to register if you haven't, or click

Tags
Author: UltratechHost - Replies: 0 - Views: 4529
How to set up 301 redirect page in Linux from .htaccess file
1. Login into cPanel.
2. Click on Filemanager icon.
3. Open public_html folder.
4. Edit the file .htaccess and write the code to redirect the page (e.g. Redirect 301 /old.php http://www.yourdomain.com/folder/new.php)
5. Click on save button.
Author: UltratechHost - Replies: 0 - Views: 12104
Redirect HTTP to HTTPS automatically
If you have a secure certificate (SSL) on your website, you can automatically redirect visitors to the secured (HTTPS) version of your website to make sure their information is protected.

Linux/cPanel/WHM:

Using the following code in your htaccess file automatically redirects visitors to the HTTPS version of your site:


Code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


If you have an existing .htaccess f