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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:26:32+00:00 2026-06-01T02:26:32+00:00

I’m developing an API using Luracast Restler library. All I’m looking for is to

  • 0

I’m developing an API using Luracast Restler library. All I’m looking for is to have the index.php to be “hidden” from my URLs in order to keep within RESTful API standards. NOTE!: yes I have mod_rewrite enabled, and yes I have the .htaccess file in the directory. I had absolutely no problem getting this done on my machine, but when moving it into a production environment for some basic testing, the .htaccess file seems to be acting differently because index.php is required in the URL again!

Both my development machine and my production machine are running windows. Both use multiple Virtual Hosts. Both have mod_rewrite enabled.

My .htaccess file is literally the supplied example:

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>
<IfModule mod_php5.c>
    php_flag display_errors Off
</IfModule>

We have identical directory settings in httpd.conf:

<directory "C:\www">
   Options FollowSymLinks -Includes -ExecCGI -Indexes -SymLinksIfOwnerMatch
   order allow,deny
   Allow from all
   AllowOverride All
</directory>

And this configuration works great on my development machine. When I move it to production, it requires index.php in the URL in order for it to serve the request to my index.php file. If I remove the index.php from the URL I get a 404 from Apache (not a Restler response). I also get this error in the Apache logs:

File does not exist: C:/www/api_website_com/public/classname/function

It’s my understanding that this .htaccess should be rewriting my HTTP requests directly to index.php and not looking for the URL as if it were a file. Does anyone have any thoughts? It has to be something simple I am overlooking.

Also note that I cannot enable RewriteLog as I do not have access to the production server’s httpd.conf.

  • 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-01T02:26:34+00:00Added an answer on June 1, 2026 at 2:26 am

    htaccess files, on this server, were configured to be a text file. For whatever reason this was done- it was a simple fix.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a text area in my form which accepts all possible characters from
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I have an MVC Razor view @{ ViewBag.Title = Index; var c = (char)146;
I have thousands of HTML files to process using Groovy/Java and I need to
I have a bunch of posts stored in text files formatted in yaml/textile (from
I'm making a simple page using Google Maps API 3. My first. One marker
link Im having trouble converting the html entites into html characters, (&# 8217;) i

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.