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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:19:28+00:00 2026-05-27T01:19:28+00:00

I have a search page located at http://www.example.com/search_result.php , and I’m mod_rewriting it to

  • 0

I have a search page located at http://www.example.com/search_result.php, and I’m mod_rewriting it to be http://www.example.com/search-result.

Basically, I want to do what the History.js demo does – append an arbitrary string to the end of the URL (with a # if it’s a HTML4 browser). The demo works great in my browser’s – however, my site’s <base> tag points to the root directory on all pages, and I think that’s what’s breaking my site’s behaviour.

Here’s what happens: If my rewritten URL ends with a /, HTML4 browsers go into an infinite URL loop of appending the string to the end of the URL. If it doesn’t, I lose the search-result portion of my URL in HTML5 browsers, and adding "search-result/ to the statement also adds it after the # in HTML4 browsers.

And If I change the base tag, the page looks for its files (CSS, JS, images, everything) in the nonexistent directory of /search-result/. So I’m screwed.

So, how do I fix this? Or should I be looking for another library? There’s RSH, but it hasn’t been updated since 2007…

  • 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-27T01:19:29+00:00Added an answer on May 27, 2026 at 1:19 am

    Could you use something like this where you exclude specific directories from the rewrite?

    RewriteCond $1 !^(scripts|styles|images)
    RewriteRule your-rewrite-rule-here [L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some search page link: www.example.com/search.php?search=search_word , I am tried to make a
Someone from our team change the permalink of a page to http://www.example.com/ so this
On my website, I have a search.php page that makes $.get requests to pages
I have a search page, written in PHP, that gets its search terms from
I have a search page that if there is results in the list it
I have a search page with the following scenarios listed below. I was told
I have a search page on my MVC site that contains a list of
I have a search page where I would like to stop the user entering
On my C# asp.net webform I have a search page that has roughly 20
I currently have an advanced search page that searches a number of fields in

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.