Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    2

    Default redirect loop issue

    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...

    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
    Last edited by Uilmuteiz; 05-11-2009 at 02:41 PM.

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,166
    cPanel/Enkompass Access Level

    Root Administrator

    Question

    Is there an .htaccess in the wordpress directory?

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    2

    Default

    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. #4
    Member xisn's Avatar
    Join Date
    Dec 2004
    Posts
    117
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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 ^/?$ "http\:\/\/domain\.org\/subdir" [R=301,L]

  5. #5
    Registered User
    Join Date
    Jun 2009
    Posts
    1

    Default

    Thanks XISN, that solved my issue!! Someone should sticky this post as it seems there are many people with this problem

  6. #6
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Our developers are currently working on this issue (Internal Case 23698).

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

Similar Threads & Tags
Similar threads

  1. cPanel redirect tool is errant - redirect loop error
    By jols in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-19-2009, 03:05 PM
  2. Redirect Loop
    By ahmadsuzairi in forum New User Questions
    Replies: 16
    Last Post: 07-19-2009, 10:51 AM
  3. Redirect Loop
    By neumannu47 in forum New User Questions
    Replies: 2
    Last Post: 03-28-2009, 08:24 AM
  4. Redirect Loop
    By nineseven in forum Database Discussions
    Replies: 3
    Last Post: 11-26-2008, 08:46 AM
  5. Subdomain Redirect Loop
    By Water in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-27-2003, 01:08 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube