How can I Redirect URLs in cPanel

Login your cpanel

1. Click the Redirects button on the front page under the “domains”

2. Enter the address of the web page to move in the first field.

3. Enter the redirection address in the second field. (this can be a sub domain
and may be listed as a directory on home page).

4. Choose one of the following options in the list:
*Temporary or *permanent

5. Click the Add button.

Redirect URLs in cPanel Servers

Redirect Examples using .htaccess

To redirect an entire site to a new domain:

Redirect 301 / http://www.new-domain.com

The following performs a 301 redirect based on the clients IP address, this could be used for banning IP addresses.

Banning an IP Address using ReWrite

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

cPHulk Brute Force Protection

WHM/cPanel has a service, protected from Brute Force attack, which is called “cPHulk Brute Force...

Enable SSH key authorized login without root password

You need to generate SSH Key ( the private key )on your cpanel server and then update remote...

Enable Custom php.ini for Fast CGI

With fast-cgi, custom php.ini needs to be in the cgi-bin folder. 1) Move php.ini to cgi-bin...

ConfigServer Firewall CSF installation

ConfigServer firewall is a popular linux firewall security suite. It is easy to install, flexible...

Disable SSH Direct Root Login

First you need to add new admin user 1,adduser admin 2,passwd admin Please keep admin password...