Skip to main content

Eliminating subdomain name (test.example.com) from appearing in search engine but allowing (test.com) to appear

Comments

5 comments

  • cPRex Jurassic Moderator
    Hey there! Are you referring to addon domains, and not wanted the subdomain that gets them to work in Apache displayed? If so, the typical way to address this is to setup a redirect to ensure you are always pointing content to the full domain. Although this thread is old now, the information is still good:
    0
  • Owner/Operator
    Thanks for the reply. I do want to keep the domain in public.html active. After some digging, I think it might be related to the .htaccess files not being transferred. I've come across the following and will place it to the test.com .htaccess file: [QUOTE] RewriteEngine On RewriteCond %{HTTP_HOST} example.com$ RewriteRule ^(.*)$ "
    0
  • cPRex Jurassic Moderator
    That sounds like a good plan - let us know how it goes!
    0
  • Owner/Operator
    I inserted the following and it worked ... RewriteEngine On RewriteCond %{HTTP_HOST} example.com$ RewriteRule ^(.*)$ "
    0
  • cPRex Jurassic Moderator
    That's always possible too, but I'm glad things are working well for you now!
    0

Please sign in to leave a comment.