PDA

View Full Version : Google & add on domains



Vegetta
02-04-2009, 12:10 PM
Hey I am running a site as an add on domain on one of my accounts.

This add on domain actualy has 2 domain names (both are working fine)


Problem is when I am getting organic search results from google the urls are coming out like this

mysite/addondomain/page.php


instead of

addondomain/page.php


Any ideas or suggestions?

felgall
02-04-2009, 01:04 PM
Sounds like you have linked to a page the wrong way somewhere so that the pages from the addon domain are attached to the main domain. If all the links from one to the other soecify the same domain name then there will not be any link for the search engine to follow to find the address it has now found.

Probably the best fix at this point would be to set up a .htaccess file in the addon domain folder that redirects to the addon domain

Vegetta
02-05-2009, 06:52 AM
site does not have any links to anything outside of the directory (except paypal) I did have a shopping cart cart installed in that directory but have since removed it (it was overkill for what i needed)

I went back through the site and made all of the links absolute instead of relative.

WOuld you have an example of what i should put in my htaccess file (I dont use them really so I am not real familiar with how to code them)

Vegetta
02-05-2009, 08:51 AM
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]


is redirecting now :) Hopefully google will get sorted and display my links properly now (I submitted a site map also)

felgall
02-05-2009, 11:21 AM
Did you find the link(s) on your main site that were linking into the folder?

Early Out
02-05-2009, 12:04 PM
Another possibility... Did you, at some point, not have an index.html on your main domain, so that when Google hit that domain, it got a list of files and subdirectories?

Vegetta
02-06-2009, 12:13 PM
Another possibility... Did you, at some point, not have an index.html on your main domain, so that when Google hit that domain, it got a list of files and subdirectories?

there is no index on the home domain I guess i should make one for it then?

should i include any special meta information on the index page in the home directory? or just throw up a blank doc with no links

Vegetta
02-06-2009, 12:14 PM
Did you find the link(s) on your main site that were linking into the folder?

there is actually nothing on the main site

Early Out
02-06-2009, 12:41 PM
there is no index on the home domain ...
Well, that explains how Google ended up with the subdirectory link to your addon domain. Google hit your primary domain, got a list of the files and subdirectories, and followed them.

Either turn off indexing (Control Panel, Index Manager), or put up a simple index.html on your primary domain (it could even just display, "Page not found").

Vegetta
02-09-2009, 01:54 PM
Well, that explains how Google ended up with the subdirectory link to your addon domain. Google hit your primary domain, got a list of the files and subdirectories, and followed them.

Either turn off indexing (Control Panel, Index Manager), or put up a simple index.html on your primary domain (it could even just display, "Page not found").

haha i did both now

Now to play the waiting game & see how long it takes before they return the proper link


Thanks for the help everyone

monta-de-pitoni.com
04-17-2009, 08:00 AM
I have the same problem :( I have an addon domain which I don't want to be either accesible or indexed as
http://www.main-site.com/addondomain

but only as

http://www.addondomain.com/

I have turned off indexing in the main site and add an index.html there - it did not seem to do any good. I wrote the .htaccess file in the addon domain folder as:

RewriteEngine on
Options All +FollowSymLinks

RewriteCond %{HTTP_HOST} ^addondomain.com$ [NC]
RewriteRule ^(.*)$ http://www.addondomain.com/$1 [L,R=301]

No redirection, though... Please help.

felgall
04-17-2009, 01:43 PM
I have turned off indexing in the main site and add an index.html there - it did not seem to do any good.

Doing that before you start adding domains always works without anything extra required. Most people would do that automatically by setting up their main domain before trying to add extras.

If you have done that after search engines have found addresses the other way then it is just a matter of waiting until the search engine revisits your site and refreshes its listing. Adding anything extra isn't going to make it any quicker for the search engines to discard the unwanted links.

The redirect just hides the already folder from any real people who make a successfull billions to one against guess as to what random character string you used for the folder name and managed to type it into their address bar.

angelo
05-10-2009, 03:25 AM
hello guys,

I have the same problem i am hosting 3 sites one site before was : http://www.me.com

now it shows http://www.me.maindomain.com

why now the main domain appears there last week the www.me.com was coming out fine .

any help or ideas what this could be...

thanks