Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

•Re: make a web site searchable

by merlyn (Sage)
on Aug 20, 2003 at 19:05 UTC ( [id://285260]=note: print w/replies, xml ) Need Help??


in reply to make a web site searchable

If you don't mind bouncing them out to Google and back to your site, you can add "search this site with Google" without any programming whatsoever. I added the following HTML to the template for the bottom of my pages:
<form action="http://www.google.com/search" method=GET> <INPUT TYPE=hidden name=site value=swr> <INPUT TYPE=hidden name=q value="site:stonehenge.com"> <INPUT TYPE=text name=as_q size=31 maxlength=256 value=""> <INPUT TYPE=submit name=btnG VALUE="Search stonehenge.com with Google" +> </form>
Just replace the two occurrances of "stonehenge.com" with your domain name, and be sure that Google is hitting your site regularly.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re: &bull;Re: make a web site searchable
by chunlou (Curate) on Aug 20, 2003 at 19:15 UTC
    I think it only works if your site has webpages have somehow been indexed by Google. Otherwise, nothing returns.
      If you don't want to wait for Google to find you, you can always submit your URL to Google. After a few days or so, your site will be indexed and searchable.

      jeffa

      L-LL-L--L-LL-L--L-LL-L--
      -R--R-RR-R--R-RR-R--R-RR
      B--B--B--B--B--B--B--B--
      H---H---H---H---H---H---
      (the triplet paradiddle with high-hat)
      
        Thanks for the tip.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://285260]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (8)
As of 2024-04-23 17:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found