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 8954177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:15:38+00:00 2026-06-15T14:15:38+00:00

I have a webpage called index.html that is connected to other pages (portfolio.php, friendzone.php

  • 0

I have a webpage called index.html that is connected to other pages (portfolio.php, friendzone.php and so on) through jQuery load() method.

Example: my menu has the following code:

<a href="./" class="button"><div id="homepageBtn"></div></a>
<a onclick="showPage('progressi')" class="button"><div id="progressiBtn"></div></a>
<a onclick="showPage('interessi')" class="button"><div id="interessiBtn"></div></a>
<a onclick="showPage('friendzone')" class="button"><div id="friendzoneBtn"></div></a>
<a onclick="showPage('contact')" class="button"><div id="emailBtn"></div></a>

When I click something that is not the homepage option, the showPage() function is called:

function showPage(page) {
    $("#post-title").fadeOut (200, function() {
        $("#post-title").html(page); // Edit the page title in the div
        Cufon.refresh(); // I use Cufon plugin, so I reload it
    }).fadeIn(500);

    $("#post-content").fadeOut (200, function() {
        $("#post-content").load(page + ".php", function() { // If I pass for example "contact", it loads me the page contact.php in the "post-content" div
            $('a.boxed').colorbox({rel: 'Galleria'}); // I use colorbox jQuery plugin, so I reload it here
            $('a.iframe').colorbox({iframe: true, width: "80%", height: "80%"}); // Same here

        });
    }).fadeIn(500);
}

Everything works flawlessly, except for one thing:

When I load another page content inside my div’s, the URL doesn’t changes. I believe this is very bad for Google crawlers and for users who want to go on the previous page by clicking the back button of their browser or share a link to a specific page of my website.

Is there any way I can achieve a different URL based on the content I load in my div?

  • 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-06-15T14:15:39+00:00Added an answer on June 15, 2026 at 2:15 pm

    You can modify the browser url without changing the actual page url, but I don’t think this will effect crawlers. You will want to generate a sitemap for robots. Setup a google webmasters account and submit your sitemaps there.

    Updating address bar with new URL without hash or reloading the page

    window.history.pushState("object or string", "Title", "/new-url");
    

    Why not make a share.php that redirects to main page with a get variable? For instance on every page you have a “Share” button that links to index.php?page=friendzone

    When someone loads up the share link it will include something like this. Place it in your <head> tags.

    <? 
    //Include this right before your end </head>.
    if(isset($_GET['page']))
    {
        ?>
        <script>
        $(function() {
            showPage('<? echo htmlentities($_GET['page']); ?>');
        });
        </script>
        <?
    }
    ?>
    

    Inside of your showPage you can then do:

    if ( history.pushState ) history.pushState( {}, page, "/?page="+page );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a webpage that retrieves data (via ajax/php) and shows it in an
I have a very simple webpage called a.html where I want to click on
I have a WebView. I want to load a local HTML file called helloworld.html.
Heres a tricky one . . I have a webpage (called PageA) that has
I have a file called config.php with contents that looks like this: $setting_1 =
Say that I have a webpage called myPage which implement Page, but also implement
Here's the situation I have a webpage which has one drop down called prefer.
I have a static timer class which will be called by ANY webpage to
I have a Menu class that has a IQueryable property called WebPages. In the
I have a webpage that is transferring A stylesheet as a text/plain MIME type.

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.