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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:53:50+00:00 2026-06-11T11:53:50+00:00

Answering my own question to an issue I kept running into with Backbone.js… In

  • 0

Answering my own question to an issue I kept running into with Backbone.js…

In my Backbone applications, I want users to be able to navigate directly to a an interior “page” without having to type a hash (#) in the URL. Out of the box, Backbone Boilerplate doesn’t seem to support this even though it does support pushState.

Users already could reach any location as long as they start at the homepage, obviously. Or they could skip straight to an interior page, but only if there was a hash (#) directly after the domain or immediately after an initial slash.

I found a solution to this problem that seems to be working. I’m posting it here for others with the same problem, to see if anyone knows a better way, and because I couldn’t find this exact problem addressed elsewhere.

  • 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-11T11:53:52+00:00Added an answer on June 11, 2026 at 11:53 am

    After trying to hack Backbone Boilerplate for a while, it occurred to me that BBB just needs the hash to be there if it isn’t already.

    So my solution is to append a rewrite rule to my .htaccess file that says if the requested page isn’t found, try again with a hash after the domain.

    <IfModule mod_rewrite.c>
        RewriteBase /
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.+)$ /#$1 [R,L,NE]
    </IfModule>
    

    So far it seems to be working fine. This had been bugging me for a while, and I figured others might be in the same boat.

    If anyone knows a better way to accomplish this, or any problems my solution may cause, please feel free to respond.

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

Sidebar

Related Questions

NOTE: I am answering my own question, since I was not able to find
Note: I will be answering my own question... just wanted to add this tidbit
I'll be answering my own question to provide bread crumbs for the next person
I'm probably answering my own question, but I'm extremely curious. I know that CSS
Just found this out, so i am answering my own question :) Use a
I'm actually answering my own question here. I must be the only person in
I'm asking and answering my own question , but i'm not assuming i have
I am answering my own question, but because I stayed up all night figuring
Note: I ended up answering my own question shortly after posting this. Thanks and
I'm writing this question in the spirit of answering your own questions, since I

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.