I have a php file that contains a script in my wordpress theme folder that I am trying to view directly through the relative path in the browser, for example: www.mywebsite.com/wp-content/themes/my-theme -name / file-in- question.php
however wordpress gives a 404 error as soon as I try to view it directly.
I would create a template in wordpress, but for the script to work, I needed to view it with the .php extension in the browser, because basically it was a user search in another external wordpress script that returns these results:
www.mywebsite.com/wp-content/themes/my-theme-name/file-in-question.php?controller=Listings ecc ....
All I need is to be able to view the php file without wordpress, giving me a 404 error
I should also mention that this happens with any other php file in the subject. I can use html files and images (placed them for the purpose only in php file extensions.
Thanks in advance.
Jason source share