Access php files in a wordpress site's root folder

by DimChtz   Last Updated May 15, 2019 20:08 PM

Consider the following wordpress site on localhost:

localhost
   - wpsite
      - wp-admin
      - wp-content
      - wp-includes
      - wp-snapshots
      // ... More wordpress files
      - nonwp_folder
         - test.php

Now if I try to navigate to: localhost/wpsite/nonwp_folder/test.php it will redirect me to wordpress homepage (localhost/wpsite). How can I solve this?



Related Questions


Updated February 06, 2019 01:08 AM

Updated July 14, 2016 08:03 AM

Updated April 28, 2015 21:03 PM

Updated August 09, 2017 15:08 PM

Updated May 19, 2018 19:08 PM