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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T15:34:17+00:00 2026-05-19T15:34:17+00:00

In my website I have a form from which the users can choose to

  • 0

In my website I have a form from which the users can choose to search for specific title in news database.
They can choose main rubric (for example Businnes) and subrubric (for example Local)and after that to enter some string to search.
After they submit the form the webpage returns the requested infromation and the url looks like this.

foo.bar/1001/234/

where 1001 is id of Businnes and 234 is id of Local

How to do so id`s to be replaced by relevant names ?

foo.bar/Businnes/Local/
  • 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-19T15:34:17+00:00Added an answer on May 19, 2026 at 3:34 pm

    This can be done using apache/htaccess/mod_rewrite, then handled by PHP

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . index.php
    

    From there you need to use $_SERVER['REQUEST_URI'] and parse out the data you need.

    The first line turns on the rewrite engine.

    The second 3 lines says, if the requested file or directory does not exist, send the request to index.php

    You can just explode the $_SERVER['REQUEST_URI'] to get the parts of the data you need, no regex required.

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

Sidebar

Related Questions

I have a asp.net web-service which I use from my ASP.NET website. I can
I have a database which has form authentication tables for an website [let say
I have a website form that collects url of users to store in a
I have a website that returns search results from Twitter, written in C# ASP.NET.
I have a working form which sends emails from the default logged in account.
I have a Java class which can be called from shell. (via java [command][options])
I have a site, from which you can download an HTML file. This HTML
I wonder is someone can help, I'm building a website, which is driven from
I have a script for sending an email from a form on a website.
I have a website that grabs a random entry from a database and displays

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.