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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:36:44+00:00 2026-06-13T20:36:44+00:00

I have a search action method which accepts at this time 5 optional parameters

  • 0

I have a search action method which accepts at this time 5 optional parameters for its search criteria.
My home page has a quick search button which submits a GET request to the search action method. I have everything
working fine, however my urls are being generated using standard querystring syntax (?x=x&y=y).

I would like to expose friendly urls but the only way I see possible using the routing system would be
to add every single permutation posible since all the parameters are optional, which does not sound very
elegant.

So are there any other routes (no pun intended 🙂 ) I can take? Possible a Url rewrite module?

Any help would be greatly appreciated.

  • 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-13T20:36:45+00:00Added an answer on June 13, 2026 at 8:36 pm

    Option 1: Live with querystrings. There is nothing that great about friendly Urls on a search page.

    /search?q=url+routing
    

    Option 2: Allow at most one optional parameter to be part of the “friendly” Url. Any additional parameters must be passed in querystrings. For example:

    /search/query/url+routing (1 parameter)
    /search/query/url+routing?tagged=asp.net (2 parameters)
    /search/query/url+routing?tagged=asp.net&sort=date (3 parameters)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple form like this: <form name=serachForm method=post action=/home/search> <input type=text name=searchText
I currently have this as a search: <%= form_tag users_path, :controller => 'users', :action
I have form like this: <form method=POST action=<?php echo base_url() ?>admin/admin_search> <fieldset> <label for=nalozi>Nalozi</label><input
i have search at this websit : https://stackoverflow.com/search?page=2&tab=relevance&q=nsarraym%20objectatindex%20index%205%20beyond%20bounds%20for%20empty%20array%27 but the solve no suit me.
I have search screen which has 10 fields and involves around 5 to 6
I have a simple search form which searches the index action of my articles
i have the following search action method, currently i am applying the cache to
I have the following action method that builds a drop down list which is
I have a sign-in-action-form page which accept username and password from sign-in-form. Now most
I have a Controller X which basically has 3 actions new, search and result.

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.