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? 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] 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
Archived
This topic is now archived and is closed to further replies.