htaccess add index.php to the route with more paths after it <p>I am building a REST using framework. Normally I can call my web services by going to this route</p> <blockquote> <p><a href="https://www.domainname.com/webservices/index.php/something/else/here" rel="nofollow">https://www.domainname.com/webservices/index.php/something/else/here</a></p> </blockquote> <p>Now I want to be able to hide index.php but still call the same route like this</p> <blockquote> <p><a href="https://www.domainname.com/webservices/something/else/here" rel="nofollow">https://www.domainname.com/webservices/something/else/here</a></p> </blockquote> <p>Currently I am able to get 200-OK from only going up to webservices/</p> <p>using the following htaccess rewrite:</p> <blockquote> <p>RewriteRule ^webservices/(.*)/$ webservices/index.php/$1 [R,L]</p> </blockquote> <p>however, everything after the webservices/ will give me a 404 not found</p> <p>here is an example.</p> <ul> <li>webservices/ ---200-OK (I see the page of webservices/index.php</li> <li>webservices/something ---404 not found</li> <li>webservices/some/thing ---404 not found</li> </ul> <p>I guess the biggest question is how do I add the paths after I add the index.php (the level of paths should be dynamic)</p> <p>P.S. I don't want to display index.php in the URL at all</p>