Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jun 2007
    Posts
    2

    Default subdomains redirecting when they shouldn't

    cPanel 11.24.4-R34548 - WHM 11.24.2 - X 3.9

    I'm doing maintenance on a client's cPanel system. He recently had someone else working on it, but I don't know what all was done. When this other person was done with it, all his subdomains became redirects (sub.example.com redirecting to www.example.com/sub).

    I went in and removed the redirect on one of the subdomains, and now sub.example.com is redirecting to www.example.com/index.php. If I load www.example.com/sub, the site loads as it's supposed to.

    I've checked for .htaccess issues, httpd.conf and looked for any custom includes for that domain (none existed). I've also found the cPanel apache config at /var/cpanel/userdata/<user>/sub.example.com and everything in there looks fine - the data in there matches what's in httpd.conf.

    I'm not a cPanel guru or anything, but I'm fairly proficient with apache and I think I've been fairly thorough in looking for what's causing this from an apache perspective.

    I've found lots of info via google on how to set up a redirect, but nothing on how to solve for an unwanted redirect.

    Any tips?

    TIA

  2. #2
    Member
    Join Date
    Nov 2008
    Posts
    76

    Arrow

    Hello,

    Please check the settings for the sub-domain in the cPanel.

    cPanel >> Subdomains.

    These will be the options you will see for setting a subdomain.

    Subdomains Root Domain Document Root Redirection Actions

    Please check whether the document root and the redirection are set correctly.

    You could disable redirection by going to the following location of cPanel.

    cPanel >> Subdomains >> manage redirection (for the respective sub-domain)

    click Disable redirection to disable the redirection.
    Regards,
    Jay J,
    HostingZoom | ResellerZoom |
    modVPS

  3. #3
    Registered User
    Join Date
    Jun 2007
    Posts
    2

    Default

    Hi,

    Thanks for the reply.

    I've already done all that - I pulled my hair out over this for the better part of a day and went through pretty much every setting I thought even might have some effect, as both the non-privileged user and the cPanel admin.

    I'm thinking that it may have something to do with ExpressionEngine, which is what the client is running on that site, although if I load the subdomain content by accessing it via the directory (www.example.com/subdomain/) it works...

    It's terribly frustrating.

  4. #4
    Registered User
    Join Date
    Jan 2010
    Posts
    2

    Default

    I am experiencing exactly the same problem. Did anyone ever find a resolution to this issue?

  5. #5
    Member
    Join Date
    Sep 2009
    Location
    Lusby, Maryland, United States
    Posts
    204

    Default

    See if this helps... if it is, give this thread a bump...

    http://forums.cpanel.net/f145/subdom...ry-143477.html

    Thanks,
    frank

  6. #6
    Registered User
    Join Date
    Mar 2010
    Posts
    2

    Default

    I'm having the same problem, but it gets even weirder: One sub domain works as it should, the others not. Any ideas?

  7. #7
    Registered User
    Join Date
    Mar 2010
    Posts
    2

    Default

    Ok, I think my problem was the .htaccess. The subdomain pointed to a subfolder of a Drupal 5 install which has an .htaccess like this:
    [drupal] Contents of /drupal/.htaccess

    Moving the folder out of the Drupal root solved my problem. I'm not sure which part of the .htaccess was causing problems.

Similar Threads & Tags
Similar threads

  1. Wildcard subdomains redirecting somewhere else
    By sevent in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-04-2010, 07:35 AM
  2. Redirecting all subdomains to a certain IP
    By AndyB78 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 11-22-2009, 04:47 AM
  3. All subdomains are redirecting to main domain
    By Acerman in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-04-2008, 02:22 PM
  4. Subdomains not redirecting
    By dancehands in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-05-2005, 04:08 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube