I've got a friend who wants to build a directory website for businesses in each of the 50 states. His current site actually features a separate page for each and every state, so at least 50 html pages in all. Lots of useful data for a spider to comb through.
It's very hard to manage though.
It's much easier to just pass a state's name into the params of a url and use the params to query the DB and use a templating system to create the page on the fly:
www.mysite.com/us/nv
params are 'us' and 'nv' so the website just creates the page on the fly showing results relevent to US and Nevada.
But then this makes the website essentially single-page.
Would this hurt SEO a lot? What's an SEO-optimized way to go about this?
It's very hard to manage though.
It's much easier to just pass a state's name into the params of a url and use the params to query the DB and use a templating system to create the page on the fly:
www.mysite.com/us/nv
params are 'us' and 'nv' so the website just creates the page on the fly showing results relevent to US and Nevada.
But then this makes the website essentially single-page.
Would this hurt SEO a lot? What's an SEO-optimized way to go about this?