Web Hosting Forum - A Web Hosting community for Webmasters

Divi WordPress Theme

Author Topic: Redirect the sub-domain on the Linux server (cPanel/WHM)  (Read 8314 times)

0 Members and 1 Guest are viewing this topic.

Offline Kailash

  • Administrator
  • Web Hosting Master
  • *****
  • Posts: 601
  • iTrader: +153/-0
    • View Profile
Redirect the sub-domain on the Linux server (cPanel/WHM)
« on: July 04, 2007, 11:01:49 AM »
Few steps to redirect your sub-domain on the Linux server (cPanel/WHM):

(1) You can redirect your sub-domain from the cPanel of your domain. Login to the cPanel of your domain -> Subdomain -> Select your sub-domain and then click on ‘Setup Redirection’ -> Enter the destination and save it.

(2) You can add the CNAME for your sub-domain to redirect it. For example, if you want to redirect sub.domain.com to domain.com then just add the CNAME sub to point it to domain.com.

(3) Change the path of DocumentRoot in the httpd.conf file. Below are the exact steps to change the DocumentRoot path:

- Open the httpd.conf file in the editor.
- Locate the entry of your sub-domain in httpd.conf file.
- Change the DocumentRoot path where you want to redirect your sub-domain.

« Last Edit: January 01, 1970, 05:30:00 AM by Kailash »

Divi WordPress Theme

Related Topics

  Subject / Started by Replies Last post
3 Replies
Last post April 27, 2008, 11:17:25 PM
by Andrew
1 Replies
Last post December 14, 2008, 01:10:47 PM
by muckle.martin
0 Replies
Last post August 10, 2008, 04:11:03 PM
by Kevin
0 Replies
Last post June 08, 2009, 10:20:02 AM
by Kailash
0 Replies
Last post November 23, 2015, 04:55:27 PM
by dm_online