Fabis94 Posted August 4, 2010 Share Posted August 4, 2010 Okay so my sites template is saved as template.php and i need to edit .htaccess somehow so people can't view the file in their browsers. How do i do that? Quote Link to comment https://forums.phpfreaks.com/topic/209783-prevent-file-from-being-opened-in-the-browser/ Share on other sites More sharing options...
trq Posted August 5, 2010 Share Posted August 5, 2010 RewriteRule ^template.php$ / [F] Quote Link to comment https://forums.phpfreaks.com/topic/209783-prevent-file-from-being-opened-in-the-browser/#findComment-1095413 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.