3 ms·
What about a redirect from your home page to whatever page 1 is at the moment?
by Sacho 11y ago
What about a redirect from your home page to whatever page 1 is at the moment?
- frik 11y agoImagine a blog. On frontpage example.com/ (= example.com/?page=1) it shows the newest 10 articles, on example.com/?page=2 it shows the next 10 articles, and so on. Every article has the actual URL in its headline hyperlink (e.g. example.com/?article=123) Now imagine that Google links to example.com/?page=2 as it found the search phrase also there (at a given time only Google knows). So when the user clicks on the search result link that leads to example.com/?page=2 NOW should the blog software know what Google or the user wants? One thing that comes to my mind is to use the referrer and if it's a common search engine parse the s=SEARCHTERM string and use an internal article search to find the best matching article.
- BHSPitMonkey 11y agoI think you missed the part earlier in this thread about using ?after=id rather than ?page=n. See Reddit for an example.
- jlgaddis 11y agoYou can see it here on HN as well. Click "new" at the top of this page, then "More", and see the "next=" parameter in the URL.