Hack Your Own Site for Simpler Searching Hack Ihrer eigenen Website für einfachere Suche
January 30th, 2008 · by David Bradley 30. Januar 2008 von David Bradley
Fellow blogger Alex King is an exceptionally talented guy, he never ceases to amaze me with his adeptness in creating new, and more important useful plugins for the likes of Wordpress and for making the most of some of the simplest little hacks. Fellow Blogger Alex King ist ein außergewöhnlich begabter Kerl, er nie wieder erstaunt mich mit seinem adeptness bei der Schaffung neuer, wichtiger und nützlicher Plugins für die gerne von WordPress und für die Herstellung der meisten einige der einfachsten wenig Hacks.
He recently posted a hack for your .htaccess file (you have to have Apache hosting for your site or blog for this to work). Er hat kürzlich einen Hack für Ihren. Htaccess-Datei (Sie müssen Apache-Hosting für Ihre Website oder ein Blog für diesen zu arbeiten). The hack makes Der Hack macht searching your site Suche Ihrer Website very straightforward via a URL rather, but also simplifies the results address produced by your inline search box. sehr einfach über eine URL statt, sondern vereinfacht auch die Ergebnisse produziert Adresse von Ihrem Inline-Suchfeld ein.
First, make a backup of .htaccess, then add the following Machen Sie zunächst eine Sicherheitskopie. Htaccess, dann fügen Sie die folgende
RewriteRule ^search/(.+)?$ /index.php?s=$1 [QSA,L] RewriteRule ^ Suche /(.+)?$ / index.php? N = $ 1 [QSA, L] to your .htaccess file and save the new .htaccess file. zu Ihrem. htaccess-Datei und speichern Sie die neue. htaccess-Datei.
To do a site search simply use a URL of the form www.yourdomain.com/search/your+search+terms Gehen Sie ein Website-Suche verwenden Sie einfach eine URL der Form www.yourdomain.com / search / Ihr + + Such-Begriffe
eg to search this site for “google tips” you would use the URL zB zur Suche dieser Website für "Google-Tipps" würden Sie die URL www.sciencetext.com/search/google+tips www.sciencetext.com / search / google + Tipps
As you can see, the search pulls up all the relevant results, but the URL for search results page is as it is, without the hack, the address is “http://www.sciencetext.com/?s=google+tips”. Wie Sie sehen können, wird die Suche zieht sich alle relevanten Ergebnisse, aber die URL für Suchergebnisseite ist, wie es ist, ohne dass der Hack, die Adresse ist "http://www.sciencetext.com/?s=google + Tipps ". I think it’s much neater with that quasi search folder. Ich denke, es ist viel ordentlicher mit diesem Quasi-Ordner suchen.
Alex goes on to add that you can modify the search form on your site so that the same kind of URL shows up when your visitors search: In your theme, simply add an “onsubmit handler” to the form tag for the search form, visit his site to get the skinny on that hack. Alex geht weiter hinzuzufügen, dass können Sie die Suche auf Ihrer Website, so dass die gleiche Art von URL zeigt sich, wenn Sie Ihren Besuchern Suche: in deinem Thema, fügen Sie einfach ein "onsubmit-Handler" auf die Form-Tag für Such-Formular finden Sie auf seine Website, um die mageren in das Hack.
Related Posts Verwandte Beiträge
- Hack Your Own Site for Simpler Searching Hack Ihrer eigenen Website für einfachere Suche
- Face Up to Google Image Search Face Up to Google Bildsuche
- Access Banned Sites With English Translation Der Zugang verboten Plätze mit Englisch Übersetzung
- Simple Google Hack Gives You More Einfache Google-Hack bietet Ihnen mehr
- About Sciencetext Tips and Tricks Über Sciencetext Tipps und Tricks

















4 responses so far ↓ 4 Reaktionen bisher ↓
Aseem Kishore Aseem Kishore // / / Feb 1, 2008 at 5:13 am Feb 1, 2008 in 5:13 Uhr
That’s pretty cool! That's pretty cool! I need to learn some coding from Alex because there are quite a few plugins that I want to write! Ich muss lernen, einige Kodierung von Alex, denn es gibt sehr wenige Plugins, die ich schreiben wollen! Thanks for the info! Vielen Dank für die Infos!
David Bradley David Bradley // / / Feb 1, 2008 at 7:29 am Feb 1, 2008 in 7:29 Uhr
Aseem, I do think Alex has some great plugins skills. Aseem, ich glaube schon, Alex hat einige großartige Plugins Fähigkeiten. Up and coming plugin writer Wayne Smallman (who contributes a lot here) is worth checking out at his Aufstrebenden Plugin Schriftsteller Wayne Smallman (, trägt viel hier) wert ist checking out in seinem technology blog Blog-Technologie . His recently launched Socialize Me! Seine kürzlich geknüpft Me! plugin runs on this site. Plugin läuft auf dieser Website.
db
David Buchmann // David Buchmann / / Feb 21, 2008 at 5:56 am Feb 21, 2008 um 5:56 Uhr
I believe the article should read “…to search this site for Google tips…” instead of “Firefox hacks”. Ich glaube, der Artikel sollte es heißen "… zur Suche dieser Website für Google-Tipps…" anstelle von "Firefox Hacks".
-David- - David -
David Bradley David Bradley // / / Feb 21, 2008 at 7:32 am Feb 21, 2008 in 7:32 Uhr
Well spotted David, I must have changed my mind half way through the editing process but failed to tweak the search string. Well spotted David, ich muß meine Meinung geändert halbem Weg durch den Prozess der Bearbeitung jedoch nicht zu zwicken die Such-String. You could of course, mod the string and search for the plethora of Firefox hacks on this site too Man könnte natürlich, mod String und die Suche nach der Fülle von Firefox Hacks auf dieser Website zu
db
Leave a Comment Schreibe einen Kommentar