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 trialMichael Fraser
19,084 PointsOne Page Wordpress theme - SEO issue?
Hi, Just watched the one page wordpress site workshop vid, reminded of a potential problem doing this that had occurred to me before. As you're building the homepage out of separate pages content, and (even though there are no anchor tags linking to them) that content still exists at specific urls, is there an issue with repeating content / search spiders finding said content? I know that the pages can be found, as I had a wordpress installation up with a holding page for a while and the (unlinked) 'hello world' post started getting comment spam after a month or so. Is this basically a non-issue, or if it is, is there a best practice workaround, e.g. something htaccess related, or deleting theme files?
2 Answers
georgknabl
1,034 PointsHi,
There are several possible solutions. One of those two should be sufficient:
- redirect all pages to your front page (home) either through code (automatic redirect on "wp"-hook if it's not a 404 or the front page) or through a redirect plugin (e.g. Quick Page/Post Redirect Plugin)
- setting up a canonical URL of home on every page other than your front page using a seo plugin (e.g. wpseo)
Best regards, George
Michael Fraser
19,084 PointsCool, thanks muchly