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.

Loop from non-www domain to www

Discussion in 'Bind / DNS / Nameserver Issues' started by digu91, Sep 21, 2016.

Tags:
  1. digu91

    digu91 Registered

    Joined:
    Sep 21, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    mexico
    cPanel Access Level:
    Reseller Owner
    Hi
    I need create a redirect from http://example.com.mx to http://www.example.com.mx but when try do it show this

    Code:
    There was an error adding the redirect.
    Redirecting "" to "http://www.example.com.mx/" will cause a redirection loop because "http://example.com.mx/", which is located at "/home/examplecommx/public_html/", is above "http://www.example.com.mx/", which is located at "/home/examplecommx/public_html/"
    
    If make the redirect in htaccess file the URL changed to

    Code:
    example.com.mx/home/examplecommx/public_html/example.com.mx/home/examplecommx/public_html/example.com.mx/home/examplecommx/public_html/example.com.mx/home/examplecommx/public_html/example.com.mx/home/examplecommx/public_html/example.com.mx/home/examplecommx/public_html/example.com.mx/home/examplecommx/public_html/example.com.mx/home/examplecommx/public_html/example.com.mx/home/examplecommx/public_html/example.com.mx/home/examplecommx/public_html/example.com.mx/home/examplecommx/public_html/example.com.mx
    
    Thanks!
     
    #1 digu91, Sep 21, 2016
    Last edited by a moderator: Sep 21, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you verify how you are adding the redirect? Is this through the "Redirects" option in cPanel, or with a custom .htaccess rule?

    Thank you.
     
Loading...

Share This Page