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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:41:05+00:00 2026-05-20T04:41:05+00:00

Possible Duplicate: How to rewrite URL without refresh, like GitHub.com Hi all, I have

  • 0

Possible Duplicate:
How to rewrite URL without refresh, like GitHub.com

Hi all,

I have a list of href links (but1 – but4) that I can click. The data is preloaded and stored as JSON. When I click a link, I would like to change the URL, eg fakeURL.com -> fakeURL.com/but1

I know this can be done by using the window.location.hash function, but I’d prefer to modify the url directly.

An example of this is github (https://github.com/apache/hadoop-common) where if you click on a folder in a repository, the url changes and the folder is loaded (via AJAX, so slightly different, but if I understood their solution I can modify to my case)

Any idea how to do this?

Thanks,
djs22

EDIT: I’d prefer a solution more robust than html5 history.pushState .

  • 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-20T04:41:06+00:00Added an answer on May 20, 2026 at 4:41 am

    It’s not possible to change the url. That would be a huge security flaw. I can’t find any ajax at github, the page reloads, and a new url is displayed. The only part of the url that can be changed with javascript is the hash-part.

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

Sidebar

Related Questions

Possible Duplicate: Please URL Rewrite in php I would like visitors to access the
Possible Duplicate: .htaccess RewriteRule for Flat Links i have a problem in a rewrite
Possible Duplicate: regex for URL including query string I have a text or message.
Possible Duplicate: Codeigniter HVMC modular seperation extension URL rewrite / routing I am new
Possible Duplicate: Apache rewrite based on subdomain Is it possible to rewrite a URL
Possible Duplicate: How to replace image links with img src url in Greasemonkey I'm
Possible Duplicate: Rewrite all queries to not need the .php extension using a mod_rewrite
Possible Duplicate: mod_rewrite - how to rewrite an URL? Hi can anyone of you
Possible Duplicate: Query Strings & Mod ReWrite I have written a .htaccess file which
Possible Duplicate: .htaccess rewrite image file to php script How can I execute a

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.