I'm currently redirecting all requests to the index.php file using the following:
<IfModule mod_rewrite.c>
RewriteEngine on
# base path, if not the root directory
RewriteBase /dev/public/
# direct all requests to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php
</IfModule>
While this works, it limits my code to only being able to run on servers with mod_rewrite enabled. So I'm wondering, is there a way to simulate this behavior without using .htaccess? How do other frameworks do it?