- When the user enters the website, let the server render the page exactly as the client would upon navigation. So if I go to
http://example.com/my_pathdirectly the server would render the same thing as the client would if I go to
- Let the server provide a special website only for the search engine bots. If a normal user visits
The first solution is discussed further here. I have been working on a website doing this and it's not a very nice experience. It's not DRY and in my case I had to use two different template engines for the client and the server.
I think I have seen the second solution for some good ol' Flash websites. I like this approach much more than the first one and with the right tool on the server it could be done quite painlessly.
So what I'm really wondering is the following:
- Can you think of any better solution?
- What are the disadvantages with the second solution? If Google in some way finds out that I'm not serving the exact same content for the Google bot as a regular user, would I then be punished in the search results?