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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:23:50+00:00 2026-05-13T13:23:50+00:00

tried to find the problem for this but nothings really working. Basically, I’m trying

  • 0

tried to find the problem for this but nothings really working.

Basically, I’m trying to use the following regular expression:

RewriteRule ^course/filter:([a-zA-Z0-9_-\,\=]+)$ php/manage_courses.php?display=list&filter=$1 [L]

however I get a 500 error and this in the error log (note the escaped chars):

[Wed Jan 27 16:29:31 2010] [alert] [client ::1] H:/SVN/prj_us/.htaccess: RewriteRule: cannot compile regular expression '^course/filter:([a-zA-Z0-9_-\\,\\=]+)$', referer: http://localhost/~svn/prj_us/php/admin_index.php

It seems to be automatically escaping the \ char, which it shouldn’t be doing… I have tried swapping the order of the regexp code, as well as removing the \ altogether but its not working.

Any suggestions? Cheers for your help.

notes:
– works without the “\,\=” part, but i need those two chars in particular for the URL that I am trying to rewrite.
– all other regexps in the .htaccess file work, although they dont have the two chars as above.

  • 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-13T13:23:50+00:00Added an answer on May 13, 2026 at 1:23 pm

    You shouldn’t need to escape anything except the - character in your character class. Try this:

    [-a-zA-Z0-9_,=]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've tried to find a solution for my problem, but my knowledge in this
I have tried to find some articles on my problem, but haven't found anything
Tried searching the site, but cannot find an answer to my problem: Lets say
I tried to find the answer to this question but could not, to be
This seems like a really, really simple problem, but I can't figure it out.
Been trying to find an answer to this but can't seem to get my
I tried to find a solution to my problem already in google and here
I tried searching and didn't find anything that fixed my problem. I have a
I've tried looking at similar problems, but could not easily find one that helped
tried to find the answer by googling and in MSDN but with no luck.

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.