SHARE

Redirect sub domain to specific web directory is used to divide and manage website in different parts . So the visitor can reach specific content easily .

Domains redirect
Domains redirect

To redirect sub domain on specific web directory login to Cpanel . Go to “Domains” section and then click on redirect icon .

Add Redirect

  • Select redirect type in type section . Select permanent (301) for permanent redirect or select temporary(302) for temporary redirect . When you select redirect 301 it mean URL or sub domain redirect permanently to new location .
redirect type
redirect type

Example

In this example i use permanent redirect sub domain cdn.tectrick.org to new web directory http://tectrick.org/newPage .

select sub domain
select sub domain
  • In domain name field select sub domain . In redirects to field  file the complete path of url which you want to redirect . Select cdn.tectrick.org from “Redirect to ” dropdown list .
  • Select redirection type :- Suppose you want to use redirection for all types such as with www or without www then select second option Redirect with or without www.
  • Click on Add button to add it .

Check that redirect is added

redirected sub domain
redirected sub domain

After click on Add button find redirected sub domain URL in the current redirects list . It looks the the upper image . Know cdn.tectrick.org is permanently redirected to new url or new web directory http://tectrick.org/newPage .

When user type cdn.tectrick.org in the web browser address bar and hit enter it is automatically redirected to http://tectrick.org/newPage .