my question is about seo,please any one tell me about blocking or hiding subdomains so google can not crawl the links of subdoamins
willson12345 0 Newbie Poster
Recommended Answers
Jump to Post— Kelly Burby 44Use Apache rewrite logic to serve a different robots.txt on the development domain:
<IfModule mod_rewrite.c>
RewriteEngine on
# Redirect non-www to wwww
RewriteCond %{HTTP_HOST} !^www\blahblah.adc [NC]
RewriteRule ^(.*)$ [R=301,L]
</IfModule>And then create a separate robots-dev.txt:
User-agent: *
Disallow: /This will block …
All 3 Replies
Reply to this topic Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.