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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:56:34+00:00 2026-06-12T14:56:34+00:00

When configuring Restler it suggests creating the following re-write rule: DirectoryIndex index.php <IfModule mod_rewrite.c>

  • 0

When configuring Restler it suggests creating the following re-write rule:

DirectoryIndex index.php
<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteRule ^$ index.php [QSA,L]
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

I have put this into a .htaccess file in root of my REST directory but I’m getting a 500 Server error when this rule is being fired. The error message the apache error log is:

[Wed Oct 10 10:39:30 2012] [alert] [client 127.0.0.1] /public/api/.htaccess: RewriteCond: unknown flag 'QSA'
[Wed Oct 10 10:39:30 2012] [error] [client 127.0.0.1] File does not exist: /public/favicon.ico

I assume the lack of a favicon.ico file can be ignored but I am concerned about the “unknown flag ‘QSA'” error. I know very little about rewrite rules so any help there would be appreciated.

For those familiar with Restler, I am using 3.0.0rc2 (if that matters). Also it’s worth pointing out that using the explicit call to index.php works so much as I then get a 404 JSON error response (a positive improvement) but as indicated above if I rely on the rewrite rule then I just get a 500 Server Error:

http://localhost/api/index.php/say/hi    - WORKS (gives JSON 404 error)
http://locahost/api/say/hi               - 500 SERVER ERROR
  • 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-12T14:56:35+00:00Added an answer on June 12, 2026 at 2:56 pm

    Interesting … I was looking into my JSON 404 message and found this post:

    Restler always returns not found

    It not only solved my 404 error but also helped to fixed the 500 Server error. The only thing I needed to do was change the http.conf’s AllowOverride to All.

    I’d still be interested if anyone could tell me WHY this is happening but the this does now work.

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

Sidebar

Related Questions

While configuring FLOW3, I get the following error #1315561483: It seems like the PHP
I am configuring django for using django admin tool, following steps in webpage http://www.ibm.com/developerworks/linux/library/l-django/?S_TACT=105AGX52&S_CMP=cn-a-l
Configuring the PHP debuggers was so hard that I can't even imagine myself using
I'm configuring my xampp, and having issues with xampp enabling openssl with php, how
I have started configuring ApacheMQ JMS Provider in Glassfish 3.1 server. I was following
I'm configuring DataImportHandler to index my db but I run into this problem. I
I'm installing and configuring Eclipse Galileo 3.52 on a PC following the instructions on
I'm configuring Jackrabbit 2.3.6 and I need to index binary files (PDF, ODT). So
Configuring NHibernate to display executed SQL does what it's supposed to, but whenever a
When configuring nginx with a site that has ssl, the examples I find online

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.