Redirects
Important:
If you use a third-party application or content management system to add a redirect, such as Wordpress®, the redirect may not function properly. When you add a redirect with cPanel interface, the system places redirect rules at the bottom of the .htaccess
file. Some third-party applications ignore the rule that you add, because those applications only read rules and configurations that their section of the .htaccess
file contains.
The following example displays the configuration that you must add to the top of the .htaccess
file to add a redirect for the Drupal content management system.
In the following example:
drupal.user.example.com
represents the URL to redirect.-
http://cpanel.net/
represents the URL to which to redirect.<IfModule mod_rewrite.c> RewriteEngine on RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{HTTP_HOST} ^drupal\.user\.example\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.drupal\.user\.example\.com$ RewriteRule ^cptest$ "http\:\/\/cpanel\.net\/" [R=301,L] </IfModule>
Note:
You cannot edit a redirect. To modify a redirect, you must delete it, and then recreate it.
Remove a redirect
To remove a redirect, perform the following steps:
- Click next to the redirect that you wish to remove.
- Click Yes.
Search your redirects
To search your redirects, perform the following steps:
- Enter the search criteria in the Search text box.
- Click Go.
The interface will list the redirects that match your search criteria.
To sort your list of redirects, click the appropriate table heading.