Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 11:43:54 AM

Pages: [1]   Go Down
  Print  
Author Topic: the path of an add-on domain  (Read 696 times)
stephiesmith
Newbie
*
Offline Offline

Posts: 3


« on: February 04, 2008, 10:09:05 AM »

Support was unable to answer this question so I'm hoping someone here can.

I'm trying to set up a simple javascript search on my add-on domain site basicsofwindows.com but I don't think I know the right path to put in for the search.  For my main site, stephiesmith.com it is simply the below (which works fine on either of these domains, i.e., the script searches stephiesmith.com and comes up with results):

var searchdomain  = "stephiesmith.com"

For my add-on basicsofwindows.com domain, I've tried the 3 below and each one gives me a google page that says no results found. Does anyone have a clue which one (if any) is correct? Am I getting no results because I just uploaded this site today and search engines haven't cached anything (I don't know if these searches go by cached content or not as I am pretty much clueless about this stuff:-(

var searchdomain  = "basicsofwindows.com" 
var searchdomain  = "stephiesmith.com/basicsofwindows"
var searchdomain  = "stephiesmith.com/public_html/basicsofwindows"

The folder for this add-on is called basicsofwindows and is inside my public_html folder for my site StephieSmith.com.

Any help would be appreciated. I have other scripts to change where I might need to know this info too.

Here is the entire script:


<!-- Begin

// NOTE: If you use a ' add a slash before it like this \'


var searchdomain  = "basicsofwindows.com"   // DOMAIN TO SEARCH


// SIMPLE GOOGLE SITE SEARCH


// COPYRIGHT 2007 © Allwebco Design Corporation
// Unauthorized use or sale of this script is strictly prohibited by law


document.write('<form method="get" action="http://www.google.com/search" class="formmargin" target="_top">');
document.write('<input type="hidden" name="ie" value="UTF-8">');
document.write('<input type="hidden" name="oe" value="UTF-8">');
document.write('<input type="hidden" name="domains" value="'+searchdomain+'">');

document.write('<table cellpadding="0" cellspacing="0" border="0" class="sidebartext"><tr><td valign="top">');

document.write('<INPUT type="text" name="q" size="15" maxlength="255" value="" class="searchsiteform"><br>');

document.write('</td><td valign="top">');

document.write('<INPUT TYPE="image" SRC="picts/search-off.gif" border="0" onmouseover="this.src=\'picts/search-on.gif\'" onmouseout="this.src=\'picts/search-off.gif\'" alt="Search"><br>')

document.write('</td></tr><tr><td colspan="2">');

document.write('<input type="radio" name="sitesearch" value="">Google <input type="radio" name="sitesearch" value="'+searchdomain+'" checked>Site <br>');

document.write('</td></tr></TABLE>');

document.write('</form>');


//  End -->
Logged
stephiesmith
Newbie
*
Offline Offline

Posts: 3


« Reply #1 on: February 06, 2008, 11:46:58 AM »

Never mind. The path must simply be basicsofwindows.com even though this is an add-on domain because now when I search, I get back results with no problem.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: