Results 1 to 2 of 2

Thread: Updating .htaccess to force noindex of a specific domain pointing to the mais site

  1. #1
    Thread Starter
    Veteran andreuerj's Avatar
    Join Date
    Jan 2012
    Location
    Brazil
    Posts
    1,666
    Thanks
    586
    Thanked 18 Times in 17 Posts

    Updating .htaccess to force noindex of a specific domain pointing to the mais site

    I'd like to avoid google from indexing the domain "http://company.hostprovider.ws", because it's not my original domain (it's a default domain that the hosting provider delivered allowing to load the site without a having a domain setup) and "http://www.company.com/wp-admin/". Making some searching, I found some tips of doing that in .htaccess inserting the code above:

    <FilesMatch "http://company.hostprovider.ws">
    Header set X-Robots-Tag "noindex, noarchive, nosnippet"
    </Files>
    <FilesMatch "http://www.company.com/wp-admin/">
    Header set X-Robots-Tag "noindex, noarchive, nosnippet"
    </Files>

    But I got error in the whole site after inserting that.

    Can somebody help me?

  2. #2
    Thread Starter
    Veteran andreuerj's Avatar
    Join Date
    Jan 2012
    Location
    Brazil
    Posts
    1,666
    Thanks
    586
    Thanked 18 Times in 17 Posts
    Closing this thread. Too old.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Vantage, Multisite and each site with its own first-level domain name
    By wcastillo in forum Help Using Vantage (Legacy)
    Replies: 2
    Last Post: May 2nd, 2012, 10:50 PM
  2. [SOLVED] I can't load my site when i enter my domain...
    By dentalmarket in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: September 19th, 2011, 09:12 AM
  3. Issues having moved existing site to a new domain
    By barefootgary in forum Report ClassiPress Bugs
    Replies: 4
    Last Post: June 22nd, 2011, 10:15 AM
  4. move classipress from sub domain to main site
    By boispade in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: December 31st, 2010, 11:55 AM
  5. site is completely BROKEN after updating w/ 1.2.1 patch
    By freelancing in forum Report JobRoller Bugs
    Replies: 6
    Last Post: December 12th, 2010, 05:47 PM