meteorhacks / meteor-ssr

Server Side Rendering for Meteor
https://atmospherejs.com/meteorhacks/ssr
264 stars 29 forks source link

SSR for SEO #11

Closed bitomule closed 9 years ago

bitomule commented 9 years ago

I'm working on a meteor app with only 4 pages that should be served to search bots. I'm trying to use SSR for this, just give bots an static page rendered in server and client rendered page for users.

Any idea on how can I do this?

I'm using iron router, btw.

queso commented 9 years ago

Just look at spiderable? I think you will basically have to detect the user agent and route them to the SSR using connect.

bitomule commented 9 years ago

Thanks @queso , I've tried doing that but don't know how to fallback to iron router client route is user agent isn't a bot.

I've added spiderable and I'm using meteor up with phantomjs but still get empty pages.

ashishgupta2 commented 9 years ago

Not sure if you checked this out yet.

https://meteorhacks.com/meteor-server-sider-rendering-for-seo-purpose.html

bitomule commented 9 years ago

Yeah, thanks @ashishgupta2