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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:59:14+00:00 2026-06-17T10:59:14+00:00

I have a CMS System that converts the ugly URLs into more friendly ones.

  • 0

I have a CMS System that converts the ugly URLs into more friendly ones.

So far instanstance, instead of the page url being something like this:

/pagebase.php?id=3644

I have a url write setup for each page to make it more friendly.

For example:

RewriteRule ^/events$   /pagebase.php?id=3644 [I]

So that when the user types in domain.com/events they pull up above url.

This works for almost all pages except this one where I need to add additional query strings so I can do something like this.

www.domain.com/events?y=2010=&m=&1d=2

That would rewrite as

www.domain.com/pagebase.php?id=3366&y=2010=&m=&1d=2. 

The only problem is the url write match fails because it doesn’t see the ?y=2010=&m=&1d=2 as a query string, it sees it as part of the url and fails.

I need to modify my rewrite file to allow query strings to be passed through.

I want to do something like
RewriteRule ^/events-%QUERYSTRING% $ /pagebase.php?id=3644 + %QUERYSTRING% [I]

Where it removes the query string from the match but then appends it to the end of the written url. I just don’t have enough knowledge on how url rewrites work to do this.

Here is an example of my rewrite file.

RewriteRule ^/events$   /pagebase.php?id=3644
RewriteRule ^/faqs$   /pagebase.php?id=3659
RewriteRule ^/gallery$   /pagebase.php?id=3645
RewriteRule ^/gifts$   /pagebase.php?id=3646

I need something that will work on all pages, I don’t want to have to modify each rule to handle specific query strings, I just want a generic solutions that will pass the query strings through.

  • 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-17T10:59:15+00:00Added an answer on June 17, 2026 at 10:59 am

    You may try matching an optional query string, and have it appended by the [QSA] modifier:

    RewriteRule ^/events(\?.*)?$   /pagebase.php?id=3644 [QSA,L]
    RewriteRule ^/faqs(\?.*)?$     /pagebase.php?id=3659 [QSA,L]
    RewriteRule ^/gallery(\?.*)?$  /pagebase.php?id=3645 [QSA,L]
    RewriteRule ^/gifts(\?.*)?$    /pagebase.php?id=3646 [QSA,L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a CMS system that I have imported some articles into directly via
I have a CMS system that I am using Routing to get the page
We have a CMS system that creates long URLs with many parameters. We would
We have a CMS system that we're currently taking the admin back end and
I have made few projects (CMS and EC system) that required to have some
I have a CMS system that allows people to also use HTML code, but
I have a CMS system that stores data across tables like this: Entries Table
I have a simple CMS system, that has a simple tree hierarchy: We have
At my current job we have a CMS system that is .NET/SQL Server based.
I have an application that used another php cms system, which I am now

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.