Question About Shared Hosting

leonssss

Well-Known Member
You have many addon domains and one major, if you are with shared hosting. I just want to ask you how to hide them, because I do not want to be indexed by Google. For example, I have the major-domain.com/sub-domain.com. Any suggestions?
 
Последно редактирано от модератор:
Shared Hosting Questions

.htaccess

PHP:
RewriteCond %{HTTP_HOST} ^www.zabavni.info.uni-web.net [NC]
RewriteRule ^(.*)$ http://zabavni.info/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^zabavni.info.uni-web.net [NC]
RewriteRule ^(.*)$ http://zabavni.info/$1 [L,R=301]

You have many addon domains and one major, if you are with shared hosting. I just want to ask you how to hide them, because I do not want to be indexed by Google. For example, I have the major-domain.com/sub-domain.com. Any suggestions?
 
Последно редактирано от модератор:
When you add them, do not do it in the public_html directory, but one level upper. In the main directory of your account. This is the easiest way to do it
 
Последно редактирано от модератор:
Frequently Asked Questions:Shared Hosting

Thanks to both of you!
@s1yf0x, this is good idea. Never thought that could help. ;)
 
Последно редактирано от модератор:

Горе