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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:41:24+00:00 2026-05-14T07:41:24+00:00

I have been working with an existing website out company has running until I

  • 0

I have been working with an existing website out company has running until I finish developing the new site.

I’ve been asked to add some additional functionality to booking pages that will automatically set a booking button based on passed parameters.

The existing working regex is as follows:

RewriteRule ^.+-(\d+)\.accommodation$ property_detail.php?id=$1

Which works fine with the url like below and passes through the URL.

this-is-the-property-name.1234.accomodation

However as a quick shiv, I am trying to do the following:

this-is-the-property-name.1234.accomodation?override=true&start_date=2010-05-14&numbernights=2&sleeps=10&price=1012

The regex I came up with for this was:

RewriteRule ^.+-(\d+)\.accommodation\?override=(\w+)&start_date=(19|20)[0-9]{2}[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])&numbernights=(\d+)&sleeps=(\d+)&price=(\d+)$ property_detail.php?id=$1&override=$2&start_date=$3-$4-$5&numbernights=$6&sleeps=$7&price=$8

The regex is passing as valid in RegexBuddy – however it keeps causing a 500 error on the server. Can anyone help me get my head around this one?

  • 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-14T07:41:24+00:00Added an answer on May 14, 2026 at 7:41 am

    You could just use the first rewrite and append the query string with the [QSA] flag:

    RewriteRule ^.+-(\d+)\.accommodation$ property_detail.php?id=$1 [QSA]

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

Sidebar

Related Questions

I'm working on adding a new webapp to an existing website. I've been directed
We have an existing web site, and I've been asked to test its compatibility
I've been working on a existing project at a new company and one of
I have an existing script that has been working fine for a long time
I have been working on a website using MVC Preview 1 since it came
I am new to python and have been working through the examples in Swaroop
I'm developing a Google Chrome extension, and have been working on one for a
I have been working on Web application so far and has just got an
I am new to wcf programming and I have been working on a small
I have been working on modifying an existing FLVPlayback skin. Ideally I would like

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.