silverglade Posted November 7, 2009 Share Posted November 7, 2009 hi, i have a subdomain called "oddnerdrum.info" and it points to http://brendansite1.startlogic.com/oddnerdrum/index.php, that is what you see later in the address bar. i was wondering , do i have to do anything special for oddnerdrum.info to be indexed by google. being that its a subdomain that points to another address? any help greatly appreciated thanks. derek Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/ Share on other sites More sharing options...
silverglade Posted November 7, 2009 Author Share Posted November 7, 2009 actually i dont think its a subdomain , i think its another domain on the same hosting acccount. Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-952946 Share on other sites More sharing options...
keldorn Posted November 7, 2009 Share Posted November 7, 2009 Google tends to ignore urls that look like that. Specially free hosting urls. Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953012 Share on other sites More sharing options...
silverglade Posted November 7, 2009 Author Share Posted November 7, 2009 thanks. is there anything i can do to get "oddnerdrum.info" to get indexed by google? Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953165 Share on other sites More sharing options...
silverglade Posted November 7, 2009 Author Share Posted November 7, 2009 also, i submitted my oddnerdrum.info to google a week ago. lol here is what my tech support for my hosting said. Nina Scott: It will take 3-4 weeks to view your domain name via Google. If the issue still persists, you need to contact Google directly. derek van derven: so you think that there is nothing wrong with my domain setup for google indexing, its just time? Nina Scott: Yes, there is no any issues with domain redirect. Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953171 Share on other sites More sharing options...
silverglade Posted November 7, 2009 Author Share Posted November 7, 2009 what do you think about that, am i ok for google indexing? please Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953179 Share on other sites More sharing options...
Mchl Posted November 7, 2009 Share Posted November 7, 2009 Use: https://www.google.com/webmasters/tools/ Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953187 Share on other sites More sharing options...
silverglade Posted November 7, 2009 Author Share Posted November 7, 2009 thanks i tried that for oddnerdrum.info, but it wouldnt let me verify the site, i think its because i have it pointed directly to http://brendansite1.startlogic.com/oddnerdrum/index.php, it wouldnt even detect the meta tag verification they give you or html upload. ill just have to wait for google to index it. which is like waiting for your kid to be born or something. LOL. Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953195 Share on other sites More sharing options...
Daniel0 Posted November 7, 2009 Share Posted November 7, 2009 You can wait a billion years, but nothing will happen. You just placed an index.html file with the following contents: <HTML> <HEAD><META HTTP-EQUIV=Refresh CONTENT="0; url=http://brendansite1.startlogic.com/oddnerdrum/index.php"> </HEAD> </HTML> You'll need to actually send an HTTP 301 response code (that means "Moved Permanently") and a proper Location HTTP header. Using Apache mod_rewrite, something like this would do it: RewriteEngine on RewriteRule (.*) http://brendansite1.startlogic.com/oddnerdrum/$1 [R=301,L] Otherwise Google won't care about you. It'll just index an empty page on the oddnerdrum.info domain. Why exactly don't you use the domain name you've purchased though? Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953207 Share on other sites More sharing options...
silverglade Posted November 7, 2009 Author Share Posted November 7, 2009 in what file and what directory on the server do i put that code please? Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953221 Share on other sites More sharing options...
Daniel0 Posted November 7, 2009 Share Posted November 7, 2009 In your httpd.conf file or in a file called ".htaccess" in the document root (if you've got AllowOverride on). Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953224 Share on other sites More sharing options...
silverglade Posted November 7, 2009 Author Share Posted November 7, 2009 i put the code in a .htaccess file in the public_html directory and i got this in the browser and an error. "your *** is not redirecting properly" http://brendansite1.startlogic.com/oddnerdrum/oddnerdrum/oddnerdrum/oddnerdrum/oddnerdrum/oddnerdrum/oddnerdrum/oddnerdrum/oddnerdrum/oddnerdrum/oddnerdrum/oddnerdrum/oddnerdrum/oddnerdrum/oddnerdrum/oddnerdrum/oddnerdrum/oddnerdrum/oddnerdrum/oddnerdrum/oddnerdrum/index.php did i do it right? please Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953227 Share on other sites More sharing options...
Daniel0 Posted November 7, 2009 Share Posted November 7, 2009 Exactly where did you put it? http://brendansite1.startlogic.com/oddnerdrum/.htaccess or http://oddnerdrum.info/.htaccess It has to be the latter. Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953230 Share on other sites More sharing options...
silverglade Posted November 7, 2009 Author Share Posted November 7, 2009 well the oddnerdrum.info points to http://brendansite1.startlogic.com/oddnerdrum/index.php and i put it in the public_html directory. Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953232 Share on other sites More sharing options...
Daniel0 Posted November 7, 2009 Share Posted November 7, 2009 How did you make your original "redirect"? Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953238 Share on other sites More sharing options...
silverglade Posted November 7, 2009 Author Share Posted November 7, 2009 in the domain pointing manager of my hosting company's website control panel. Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953239 Share on other sites More sharing options...
Daniel0 Posted November 7, 2009 Share Posted November 7, 2009 Well, that's not adequate. Try putting view-source:http://oddnerdrum.info/ in your address bar (works in FF, I don't know about other browsers). It has just placed a file that looks like this: <HTML> <HEAD><META HTTP-EQUIV=Refresh CONTENT="0; url=http://brendansite1.startlogic.com/oddnerdrum/index.php"> </HEAD> </HTML> Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953243 Share on other sites More sharing options...
silverglade Posted November 7, 2009 Author Share Posted November 7, 2009 i never get that far, i type in oddnerdrum.info and it goes directly to http://brendansite1.startlogic.com/oddnerdrum/index.php where i get a ton of the pages html. what do you think i can do now to get my page indexed by google? i put the .htaccess in the public_html folder and it didnt work. i have one hosting account, the first domain is derekvanderven.com, and the second one is oddnerdrum.info. oddnerdrum.info is pointing to a subdirectory of my server oddnerdrum/index.php Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953247 Share on other sites More sharing options...
Daniel0 Posted November 7, 2009 Share Posted November 7, 2009 oddnerdrum.info is pointing to a subdirectory of my server oddnerdrum/index.php No, it does not. That's what I'm telling you. From an HTTP perspective, http://oddnerdrum.info/ and http://brendansite1.startlogic.com/oddnerdrum/ point to two different locations. Remove the "redirect" you've already made using your control panel or whatever. Then place the .htaccess file at http://oddnerdrum.info/.htaccess Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953254 Share on other sites More sharing options...
silverglade Posted November 7, 2009 Author Share Posted November 7, 2009 thank you i deleted the redirect in control panel and put the .htacess file in public_html/oddnerdrum/. i dont know what directory to put .htaccess in now that oddnerdrum.info isnt pointing to brendansite1.startlogic.com/oddnerdrum/index.php. check out http://oddnerdrum.info now, its a blank page. i put the htaccess file in the oddnerdrum directory, im not really sure why. LOL. do you know what directory i should put it in now that oddnerdrum.info points nowhere ? please. the .htaccess code i used was RewriteEngine on RewriteRule (.*) http://brendansite1.startlogic.com/oddnerdrum/$1 [R=301,L] thank you for helping me. weird, in Firefox everything looks normal, and i dont have any pointing OR an htacces file in there now. but in internet explorer, oddnerdrum.info is a blank page Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953262 Share on other sites More sharing options...
keldorn Posted November 7, 2009 Share Posted November 7, 2009 If understand what you trying to do. You will not beable to use the same www (public_html) folder for redirecting the whole site. The .htaccess will interfere with both domains, since there both physically in the same location, the .htaccess will redirect both domain, and you will get infinite redirect loop. Really pain the ass. Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953269 Share on other sites More sharing options...
silverglade Posted November 7, 2009 Author Share Posted November 7, 2009 what should i do then please? thanks. derek should i buy another hosting account just for oddnerdrum.com so it has its own directories? Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953270 Share on other sites More sharing options...
Daniel0 Posted November 7, 2009 Share Posted November 7, 2009 If they point to the same directory on the file system, you can do this: RewriteEngine on RewriteCond %{HTTP_HOST} ^(www\.)?oddnerdrum\.info$ [NC] RewriteRule (.*) http://brendansite1.startlogic.com/oddnerdrum/$1 [R=301,L] You still need to remove the old "redirect" though! Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953272 Share on other sites More sharing options...
silverglade Posted November 7, 2009 Author Share Posted November 7, 2009 i used the above code in an .htaccess file in public_html, and i removed my hosting provider control panels "pointer", and still for oddnerdrum.info i get a blank page. i also used oddnerdrum.info/oddnerdrum/index.php in the htaccess file and that didnt work either. Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953277 Share on other sites More sharing options...
Daniel0 Posted November 7, 2009 Share Posted November 7, 2009 Well, maybe if you stopped reverting things all the time it would be easier for us to see what's going on so we can help you... Quote Link to comment https://forums.phpfreaks.com/topic/180626-is-my-subdomain-getting-ignored-by-google/#findComment-953279 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.