Skip to main content

Associated Domain in Webstats

Comments

3 comments

  • cPRex Jurassic Moderator

    Hey there!  There aren't tools in cPanel to manage this, so you'll need to manually setup any redirects that you want to happen.

    I will say that our team is looking into ways to keep the extra subdomain associated with addon domains from being indexed in search engines, which would likely help with your situation as well, and I've added your experience to that case.

    0
  • MapleOne

    Yeah its too bad, I counted and I actually have over 500 domains in the same folder so the webstats are way bigger than they should be showing a lot of domains with their subdomains so I have to add the two together to get an accurate count.

     

    I removed all the www's with one entry and was hoping to do the same with the subdomains

     

    RewriteOptions inherit
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

     

    0
  • MapleOne

    Also working on this for the subdomains but it looks like it still needs a tweak

     

    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^(?!www\\.)([^.]+)\\.domain\\.com$ [NC]
    RewriteCond %{REQUEST_URI}::%1 !^/([^/]+).*?::\\1
    RewriteRule ^(.*)$ /%1/$1 [L]
    0

Please sign in to leave a comment.