I have created a symlink (using ln -s index.php test) to my index.php to try and get a ‘prettier’ url without the .php extension.
However, when I access https://myservername.com/test I get served the raw php file instead of the interpreted content.
I would like to avoid having to turn on mod_rewrite if possible since it will be for this one file only (I am using the CodeIgniter framework that does the url translation for the rest of the files).
Is there a way for apache to read the real destination file instead of the symlink to determine that it is a php script? Is there a better way of accomplishing this?
If you do not want mod_rewrite (I think it is legimate, in the past security issue of mode_reqrite has occurs, if you do not need it why using it?):
Alias is provided by mod_alias that you should have. Remove you symlink.