Jump to content
simonGG

singe page site - google indexing problem

Recommended Posts

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

Disallowing /about/ is probably not a good idea. /about/ should load the correct content inside your single page app.

Share this post


Link to post
Share on other sites

@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

 

Share this post


Link to post
Share on other sites

Yeah, but google would also only index a single page. If that's what you want then go for it.

Share this post


Link to post
Share on other sites
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:

 

  • Like 1

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...