My webserver is Apache (I don't have admin rights over it though).
In my www/ directory, I have some .c files I'd like to display to the user to view in their browser.
Currently though, the website tries to make the user download the files instead of simply displaying them.
How can I fix this? Is there some sort of .htaccess trick?
Putting:
AddType text/plain .c
in the .htaccess should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With