Load the main page if user visits a page meant for an ajax request?

Posted by QAZ on Stack Overflow See other posts from Stack Overflow or by QAZ
Published on 2010-03-18T23:37:28Z Indexed on 2010/03/18 23:51 UTC
Read the original article Hit count: 97

Filed under:
|
|

Hello,

I am using jQuery for a simple website and have a main page 'index.html' which can load some content (e.g. 'info1.html' or 'info2.html') via jQuery ajax requests, and display the result of these requests inside an element in the 'index.html' page.

If a user somehow visits say 'info1.html' directly, is their a way to redirect or load the main 'index.html' page? (or what's best practice for this type of thing) as Google is indexing all the small html files used for the ajax requests and sometimes a user can click into the site via these pages.

Thanks.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX