How do I allow custom .php files to be accessable?
This should do the trick:

 RewriteCond %{REQUEST_URI} !/learning/[^/]*\.php$


For more info please look at this thread, unable to run custom php script inside drupal.