Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    859

    Default cPanel redirect tool is errant - redirect loop error

    This did not used to be the case. But now if you use the cPanel redirects tool to redirect traffic to a subdirectory you will get a redirect loop error.

    Here are the results of using the redirect tool that show up in the root web .htaccess file:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^.*$
    RewriteRule ^.*$ "http\:\/\/www\.domain\.com\/subdirectory\/" [R=301,L]


    To avoid the redirect loop error, I have to manually change the above to the following:

    RewriteEngine On
    RewriteCond %{HTTP_HOST}%{REQUEST_URI} ^domain.com/$ [NC,OR]
    RewriteCond %{HTTP_HOST}%{REQUEST_URI} ^www.domain.com/$ [NC]
    RewriteRule ^(.*)$ http://www.domain.com/subdirectory/$1 [r=301,nc]


    This of course leads to a number of unnecessary support calls throughout the week when our hosted customers try to do the redirect using the cPanel tool. Can anyone here suggest a resolution for a fix? Should I make a bug report or something like that? Or, is there a control or parameter file we can edit so that these redirects do not end up in loops?

  2. #2
    Member
    Join Date
    Sep 2008
    Posts
    61

    Default

    same problem on 4 servers

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

    Root Administrator

    Lightbulb

    I believe this is being looked into already. See this post on that:
    http://forums.cpanel.net/539329-post6.html

Similar Threads & Tags
Similar threads

  1. Replies: 3
    Last Post: 09-23-2011, 08:49 AM
  2. Redirect Loop
    By ahmadsuzairi in forum New User Questions
    Replies: 16
    Last Post: 07-19-2009, 09:51 AM
  3. Redirect Loop Problem
    By ndevani in forum New User Questions
    Replies: 1
    Last Post: 05-02-2009, 03:07 PM
  4. Redirect Loop
    By neumannu47 in forum New User Questions
    Replies: 2
    Last Post: 03-28-2009, 07:24 AM
  5. Redirect Loop
    By nineseven in forum Database Discussions
    Replies: 3
    Last Post: 11-26-2008, 07:46 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube