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 trialJared Sanders
6,461 PointsWill changing the Title of the page dynamically affect search engine optimization?
I could be wrong, but I always remember my job telling me not to change the meta title and description because it will hurt the ranking with google, etc. Of course, when selling products, you want your page to show up towards the top of the page.
So by changing the $pageTitle based on what the $_GET["cat"] is, wouldn't that be affecting how search engines see the page? Or is this class on a more basic level where that isn't important? I guess it depends on whether or not google ranks each page (www.example.com?cat=example1, www.example.com?cat=example2, etc) as different pages or as one page.
Could someone help explain this process or make it clearer for me?