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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:09:06+00:00 2026-06-15T23:09:06+00:00

Hello the problem I’m having is this, I have a landing page (event.php) that

  • 0

Hello the problem I’m having is this, I have a landing page (event.php) that shows events from my DB.

Each event among other fields has ‘category’,’title’,’id’. I’m trying to create clean urls for my website that will look like this http://domain.com/event/category/title but the problem is that some events might have the same title because they might repeat weekly or so, altho they do have unique id, which I use to get the specific event.

My question is this, how could I transform something like:

http://www.domain.com/event.php?cat=rock&title=Great-gig&id=145

into:

http://www.domain.com/event/rock/Great-gig

Keep in mind that I do need the value of id but I dont want it to be shown on the clean url somehow…

I can create clean urls with htaccess but I can’t figure out how to exclude the id from being seen.

Thank you.

  • 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-15T23:09:07+00:00Added an answer on June 15, 2026 at 11:09 pm

    You have 2 options only:

    1. make an alias, for example, Great-gig-Dec if the event in december, Great-gig-Jan if it is in January and use this value as your unique id

    2. load only the next event, or the most recent event, depending on your structure of site. This way if there are more than one Great-gig then you get the latest or the next, so you can structure your url like http://www.domain.com/next-events/rock/Great-gig, http://www.domain.com/latest-events/rock/Great-gig . So here you know which one of the many rows to use while it still looks like a good url.

    maxim

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

Sidebar

Related Questions

hello i hace problem this code : ListenerCrud.php <?php namespace mio\mioBundle; use Doctrine\ORM\Event\PreUpdateEventArgs; use
Hello I have this problem with PyQt4-dev-tools that include: * a user interface compiler
Hello all I have this problem that I can't seem to fix. I've been
Hello I faced the same problem I have 1 broadcast receiver from that I
Hello I have problem that I'm loosing $_POST['id'] value from select tag after clicking
hello today i have a problem how can this happen ? everything that is
Hello i am having this problem: i am downloading data from xml using linq
Problem Hello all! I have this code which takes my jpg image loops through
hello I am having problem related to https:// . I have used FB.getLoginStatus(function(response) function
Hello my problem is simple I have code which simplified looks like this foo

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.