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

  • SEARCH
  • Home
  • 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 7184467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:12:30+00:00 2026-05-28T18:12:30+00:00

Is this possible? I have 4 pages that load dynamically with PHP/AJAX when corresponding

  • 0

Is this possible? I have 4 pages that load dynamically with PHP/AJAX when corresponding menu items are clicked.

What is the best practice for optimizing content loaded dynamically with PHP? I have tried generating a basic xml sitemap but the only page that shows is the back end handler with relative paths to the pages, not the pages themselves.

Appreciate the responses, 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-28T18:12:31+00:00Added an answer on May 28, 2026 at 6:12 pm

    Well, the best practice with Ajax links is that you still specify an address in the tags that non-js browsers can follow (search engines). A pleasant side effect of this (besides SEO) is that an XML site map would be just as simple to create as if there were no Ajax content loaded dynamically …

    You should strive to make your Ajax content function normally in the absence of JavaScript. Then most of these kinds of issues will disappear.

    UPDATE BASED ON COMMENTS

    You have a couple of options based on the further explication in the below comments …

    The simplest would be to implement consistent naming conventions among the cached versions of your dynamic content. Then you could simply scan the cache directory using globdocs (or opendirdocs and readdirdocs) and generate the sitemap based on the names of files found in the directory.

    Another option would be to create a “registry” of some kind that is updated whenever you cache a dynamic page. This could be a database table or a flat text file that maps the sitemap filename identifier to the actual cached file name. You would then add or remove entries from this registry whenever a cached file was stored or deleted.

    As an alternative to a simple registry like I just mentioned you might use the XML sitemap itself as the registry. Each time a cached file was created, you could load sitemap.xml into a DOMDocumentdocs and manipulate the sitemap in real time, saving it back to disk when you finish editing.

    It really just comes down to problem solving, I think.

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

Sidebar

Related Questions

I have a Menu control that I dynamically populate with categories. When a user
Is this possible to have two (or more) different kinds of cells to be
Is this possible? I want to have the To:, Body, and an Attachment all
Is this possible? I have a solution with both projects, I just want to
is this possible to do , or do i have to do it all
Is this possible? In an events system an event can have multiple times. (ie,
Surely this is possible? I have been hunting through PyQt tutorials and documentation but
I have no idea if this is possible, but if it is, what would
I have no idea if this is possible ... but it would be cool.
Is it possible to have nested set capabilities in this somewhat custom setup? Consider

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.