Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Loop from non-www domain to www

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

Tags:
  1. digu91

    digu91 Registered

    Joined:
    Sep 21, 2016
    Messages:
    3
    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:
    44,367
    Likes Received:
    1,857
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice