Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 672435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:29:06+00:00 2026-05-14T00:29:06+00:00

I am using jQuery for a simple website and have a main page ‘index.html’

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T00:29:06+00:00Added an answer on May 14, 2026 at 12:29 am

    Workaround 1:
    since jquery will pick the content inside the body tag by default, you could add in the head element a script to redirect you to the main page or a meta tag ( more correct ) as Daniel mentioned.

    Workaround 2:
    if your ajaxed files are inside a folder you could use a robots.txt file and direct google to not index pages in those folders..

    or you could do it directly from inside those pages (look at http://en.wikipedia.org/wiki/Noindex )

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple html page with a div. I am using jQuery to
I have a simple html block like: <span id=replies>8</span> Using jquery I'm trying to
I have a simple HTML. I am using the JQuery for AJAX purpose. Now,
I'm using jQuery to create a simple, but large dropdown menu. I have some
I am using jQuery datatables in a dynamic PHP site. I have a page
I'm using jQuery UI's draggable and droppable libraries in a simple ASP.NET proof of
I'm using jQuery to post a form to a php file, simple script to
I'm trying to create a simple toggling sidebar using jquery, where it expands and
Using jQuery , how can I dynamically set the size attribute of a select
I've been developing a simple website using asp.net MVC and I'm starting to add

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.