The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

redirect loop issue

Discussion in 'General Discussion' started by Uilmuteiz, May 11, 2009.

  1. Uilmuteiz

    Uilmuteiz Registered

    Joined:
    May 11, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi everyone,

    I've been using CPanel for a while now and everything worked out fine until a few weeks ago.

    I tried redirecting a domain to a wordpress directory and I got a redirect loop.

    So far I tried to redirect to another folder and I got the same problem.
    Tried both permanent and temporary redirect, failed.
    I tried uploading a .htaccess file to my root directory and it failed as well.

    I tried redirecting to another site (a yuku board site) and it worked like a charm.

    I'm somewhat at a loss right now and I would appreciate any help (or general pointing in the right direction.)

    I've seen some people with similar issues, but they haven't found a sure to that problem either.

    It's as if the redirect tool from Cpanel and the config file from the apache server didn't allow any redirections to a subfolder... :confused:

    And yet on another web site I have on the very same server, the exact thing I want to accomplish here works just fine. So there must be something I'm doing wrong.

    Thank you for any input.

    EDIT: just in case this helps, i'm using cPanel Version 11.24.4
     
    #1 Uilmuteiz, May 11, 2009
    Last edited: May 11, 2009
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Is there an .htaccess in the wordpress directory?
     
  3. Uilmuteiz

    Uilmuteiz Registered

    Joined:
    May 11, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    the answer is no

    I believe it would make sense since that would most likely create a loop

    as in "go there" and once you've reached your destination you find another "go there" which is pretty much exactly the same destination you're in at the moment.

    Now I could see a dog running around after his own tail.
     
  4. xisn

    xisn Well-Known Member

    Joined:
    Dec 4, 2004
    Messages:
    128
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    I see this issue on a few of my servers as well, it seems the issue is in the .htaccess file creation:

    it looks like this:
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^domain.org$ [OR]
    RewriteCond %{HTTP_HOST} ^www.domain.org$
    RewriteRule ^.*?$ "http\:\/\/domain\.org\/subdir" [R=301,L]
    
    instead of this: (Notice the red below)

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^domain.org$ [OR]
    RewriteCond %{HTTP_HOST} ^www.domain.org$
    RewriteRule [COLOR="Red"]^/?$ [/COLOR]"http\:\/\/domain\.org\/subdir" [R=301,L]
    
     
  5. spent

    spent Registered

    Joined:
    Jun 8, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Thanks XISN, that solved my issue!! Someone should sticky this post as it seems there are many people with this problem
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Our developers are currently working on this issue (Internal Case 23698).

    Thanks for bringing this to our attention via forums and tickets.
     
Loading...

Share This Page