Can't execute php files in wordpress directory


Staff member
Here is my problem.
I have a wordpress site, and I'm trying to make a file to migrate data from one database to another. So I have migration.php in wordpress root folder, but when I navigate to that file, I get error 404 Page Not found from Wordpress.
I have tried different .htaccess fixes, but no luck
my .htaccess looks like this

# 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]

# END WordPress