I'd like to change /comp.php to /comp but I have only found articles on how to remove .php completely and I don't want to do that, only want to do it for this one file.
Use This code in your .htaccess file and let me know if it works RewriteEngine On RewriteRule ^comp/?$ comp.php [NC] Code (markup):
Why you want to make it a "Redirect"?? Redirection is for moving user from 1 URL to Another URL using htaccess
I meant in terms of if someone typed in /comp.php it should take them to /comp - I don't want to duplicate pages.