simonGG Posted February 3, 2017 Share Posted February 3, 2017 Hi there, i developed a single page site where the sections of the site are pages within processwire. For example imagine this case: I have 3 sections about, work, contact. So i created 3 templates and 3 pages. Now in my home.php i include them - so far so good. Thus i get www.page/about, www.page/work, www.page/contact ... and google is indexing this urls. I don't want that to happen because they content only works within the home where the css and js is loaded. What can i do? Can i simply disallow them in a robots.txt like: Disallow: /about/ ... or will this be a SEO killer? Thanks in advance & cheers Simon Link to comment Share on other sites More sharing options...
FrancisChung Posted February 3, 2017 Share Posted February 3, 2017 robots.txt is a good start, but it may not stop some crawlers from crawling your pages anyway. Have you tried hiding your other pages / templates? Link to comment Share on other sites More sharing options...
LostKobrakai Posted February 3, 2017 Share Posted February 3, 2017 Disallowing /about/ is probably not a good idea. /about/ should load the correct content inside your single page app. Link to comment Share on other sites More sharing options...
simonGG Posted February 3, 2017 Author Share Posted February 3, 2017 @FrancisChung hidding is not realy a option for me because in my setup they musst be visible. @LostKobrakai hmm when i disallow /about/ in robots.txt - it's only hidden for crawler or? I mean i can still include the contents in my home cause home isent hidden anyway? cheers Simon Link to comment Share on other sites More sharing options...
LostKobrakai Posted February 3, 2017 Share Posted February 3, 2017 Yeah, but google would also only index a single page. If that's what you want then go for it. Link to comment Share on other sites More sharing options...
Robin S Posted February 3, 2017 Share Posted February 3, 2017 10 hours ago, simonGG said: hidding is not realy a option for me because in my setup they musst be visible. You mean you want the pages that are rendered as part of Home to be accessible at /about/, /work/, etc, to human visitors but not to Google? That seems odd, especially if they don't display properly without the CSS/JS from the Home template. I think you do want to prevent direct access to those pages. This thread has some techniques for achieving that: 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now