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!

URL canonical for all sites

Discussion in 'Bind/DNS/Nameserver' started by consultant, Jan 8, 2016.

  1. consultant

    consultant Member

    Nov 18, 2015
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    I just noticed by default all sites on Cpanel don't Rather than do a .htaccess rule for each site how can I change it to the default for all website to redirect 301 to Or is it better practice to do it the other way around? It seems Google defaults to www when you do have redirection setup so I figured best to redirect to what Google defaults to.

    p.s. I have modsecurity running
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    The "www" alias is added by default. Could you provide an example of what you are attempting to configure? For instance, are you attempting to configure a redirect to ensure the "www" prefix loads by default when accessing the "non-www" prefix in your web browser?

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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