I have a hardlink (created with the php link()
function) on my server that is named looksLikeAdirectoryButReallyIsPHPfile
and it is linked to aRealDir/index.php
looksLikeAdirectoryButReallyIsPHPfile
and aRealDir
are in the root directory for the web server
however when I request http"//example.com/looksLikeAdirectoryButReallyIsPHPfile
I get the source code and not the PHP processed result of the code.
I attempted this handler in the root directory's .htaccess file, but it doesn't do anything:
<Files "looksLikeAdirectoryButReallyIsPHPfile">
SetHandler application/x-httpd-php
</Files>