Re: searching by tags....
| From: | Nathan Rixham | Date: | Tue, 14 Oct 2008 22:17:33 +0000 |
| Subject: | Re: searching by tags.... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-281926@lists.php.net to get a copy of this message | ||
Ashley Sheridan wrote:
On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote:quite a few sites seem to have a very neat way of implementing this with (url rewriting?) something like http://sitename/blog/tags/tag-comes-here/
As for getting those search terms, well a link in a page can contain GET values, such as http://www.somedomain.com/blog?tag=search_term . Alternatively, you could use mod-rewrite to rewrite the URL and turn the path into tag variables. This is the same as the above but with the added benefit that users can type in tags directly more easily, and there are apparently benefits for SEO with this method as well (but I'm not sure how true that is)it's very true; from the google webmaster guidelines: If you decide to use dynamic pages (i.e., the URL contains a "?" character), be aware that not every search engine spider crawls dynamic pages as well as static pages. It helps to keep the parameters short and the number of them few. previously it was text along the lines of "google doesn't index all pages with query parameters, so avoid them where possible" additionally one of the weightier points in categorising pages within the SERPS is the text in the url (especially if the page is actually about /the_tag_in_the_url : see http://www.google.com/search?q=tags)