Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

1000 HTML Pages - Whats the best way?

I am making a site that teaches grammar. (Grammar Dictionary) So each grammar point will have its own page, explaining that grammar point. Kind of like a Dictionary.

My question is, keeping SEO in mind. What is the best way to go about doing this? Is it ok to just make over 1000 pages all linking to the main page. Or is there a better way?

8 Answers

I think this is ideal for something like a php project. Presumably each page will be the same as far as layout, function etc. So it's only the data that changes? So you're better having a single page that populates with the changing data (grammar point and explanation) from a database. As far as SEO for that I'm not sure.

Caroline Hagan
Caroline Hagan
12,612 Points

From my limited experience with SEO, as long as each page content is unique (not carbon copies of the same stuff) then I'd say go ahead and make a page for each grammar point! I agree with Andrew in that, building and maintaining the pages, PHP is the way to go, especially using includes for say your header / footer.

Caroline Hagan
Caroline Hagan
12,612 Points

Definitely continue learning HTML + CSS, but you can start to add tidbits of PHP into your files. For starters, save your files as .php instead of .html and they will still work as expected.

Then, if say you are using a logo on every page, you can create a separate file, called logo.php , copy+paste your HTML (e.g. <a><img src="" /></a>) Then in every new page you create, you can include that logo using <?php include("logo.php"); ?> this way you only have to update your logo image/link in one place, not 1000.

Just tweak your site as you learn new things :-)

Caroline Hagan
Caroline Hagan
12,612 Points

I would say if this is a personal project (not a client paid project) then carry on with your HTML+CSS learning. Then when you feel confident building in that, then move onto the PHP videos and see how you get on with that. Baby steps ;-)

Thank you very much, Is learning php harder than HTML, sorry for the silly question just not sure. Should i complete learning HTML CSS, and then go onto learning PHP. Or will i save time by just moving to PHP now?

Thanks Caroline, So i suppose i should only build the site once i have learnt or whilst learning PHP ^^~

And there's nothing to stop you building the site now but just implement a few pages to get the basic principle working and keep updating it as you learn more and how to make it more effective. I certainly wouldn't build out a 1000 page HTML site. But you could make a start on how you want your site to look and then start building up the functionality and replace it with more sophisticated functionality as you learn. As Caroline said keep going with HTML and CSS and then start introducing php. The PHP track requires you to learn HTML anyway so think of it as just building up your sophistication rather than one replacing the other. Once you start getting to things that make more sense to store lots of information (server side databases etc) then you can go ahead and use those to populate with your 1000 pages worth of data. :-).

Kevin Korte
Kevin Korte
28,148 Points

I agree with other suggestions. This is a perfect project from a CMS. Maintaining a 1000 page html website would eventually become unmanageable. If you used a CMS, you could have only one file that generated a 1000 pages when requested. That's only one file to update, one file to redesign, one file to troubleshoot. Yay!

I realize you're not there skill wise it sounds like. I'd also encourage you to continue working on your HTML and CSS skills, but in my mind the end goal would be to have it on a CMS like wordpress.

I'm doing something similar. I'm building a site that will have information on a lot of different machines. I'll likely end up with well over 1000 machines, but so far I have less than 12 php files that generate the entire site. And as I add more machines, I won't have to add more files. It is built on Wordpress with a lot of custom functions. Here is my site to get an idea. I will say this thing is far from polished; I have a list a mile long of fixes for it, but here it is. My wordpress site

Thanks Kevin, i think your site is great. I also think that you will get a lot of traffic. I think you are an expert in design, may i ask why you are using wordpress?

To be honest, i have actually used wordpress with my site, 300 pages. But i realized that because i use wordpress, i am classified as a blogger. Search engines rank me in that way. This one of the big reasons i decided to build a proper site.

Kevin Korte
Kevin Korte
28,148 Points

Thank you. I've not noticed any issues so far. It's still early to tell. I have started appearing in organic google searchs for terms I wanted to show up for, so it appears I'm slowly gaining traction.

I used wordpress because it was what I was most comfortable with, and also had the plugins I wanted. How long ago was it that you used wordpress? Wordpress has come a long way in separating itself from being a blogging platform to being a more open CMS. With what you can do with custom post types and custom taxonomies, it really can be turned into managing any type of content you want.

There are some other really great CMS's out there. I'd encourage you to at least use a CMS for this project. It should like it would be a good fit.