mrneilrobinson Posted November 18, 2009 Share Posted November 18, 2009 Hi, how would i enter a simple set of apache rewrite rules for directing all requests to a php script, excluding any requests to existing files. Quote Link to comment https://forums.phpfreaks.com/topic/182016-direct-requests/ Share on other sites More sharing options...
cags Posted November 18, 2009 Share Posted November 18, 2009 Sounds like your looking for something like this... Options +FollowSymLinks RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^.*$ ./index.php Quote Link to comment https://forums.phpfreaks.com/topic/182016-direct-requests/#findComment-960205 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.