My Professional Profile

I am Johnson Augustine Sr.Software Engineer and System Architect. I have 10 Yrs of hands on expertise in MVC 5 , Angular 5 , C# MVC Razor, WPF MVVM , Android , IOS Swift 3 , IOS11 MSSQL,MySQL Database,,PHP,C/C++/Visual C++/G++/QT++,Com,DirectX,Open CV,EMGU CV , embedded System Development , [Raspberry PI]. ,html,Javascript,Jquery,Ajax.CSS , Networking ,Cyber security, Ethical Hacking You can see my professional profile at Email :

Saturday, 26 October 2013

How do I tell search engines not to index content via secondary domain names or any folders

1) Configure settings in .htaccess file like bellow

RewriteEngine on
RewriteCond %{HTTP_HOST} \.b\.com$ [OR]
RewriteCond %{HTTP_HOST} \.c\.com$
RewriteRule ^(.*)$$1 [R=301,L]

2) Configure settings in robots.txt file like bellow

User-agent: *
Disallow: /search
Disallow: /groups
Disallow: /images
Disallow: /news

Any of the above two steps will resolve what you need

No comments:

Post a Comment

Note: only a member of this blog may post a comment.