I have a WordPress site and WP supplies a .htaccess which includes the following:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
That redirects all requests to http://mydomain.com/index.php.
How do I prevent redirects for, e.g., http://mydomain.com/tools or http://mydomain.com/tools/stats.php?
If tools is a directory, and tools/stats.php is a file, they are already excluded by the two
RewriteCondlines.