Question: I have created a folder within WordPress public\_html folder and created a test.php file in it as below. 

www.mysite.com/myfolder/test.php

When I navigate to this url, I get page not found 404 error. All other files in myfolder, e.g. test.txt load without any issues. It's just php files that are not running. Could anyone please help?

My .htaccess file is

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

```

Answer: 
This is weird since WP leaves your files alone due to `RewriteCond %{REQUEST_FILENAME} !-f` condition.

Try creating a `myfolder/.htaccess` file with this line:

```
# just one line here
RewriteEngine On

```

This will basically nullify all rewrite rules of parent folder.
Please check file-folder permission of myfolder. It should not be 777 instead it should be 755 on your server.

Please refer [Wordpress php file execution](https://stackoverflow.com/questions/8811938/wordpress-php-file-execution)