bilis_money Posted June 15, 2007 Share Posted June 15, 2007 A very simple question. Is it fine to put .htaccess into sub directory. like for example this one below, /public_html/joomla/.htaccess or It's for the root directory /public_html/.htaccess only. Any advice or additional information from you will be highly appreciated. thanks in advance. Link to comment https://forums.phpfreaks.com/topic/55696-htaccess-where-i-suppose-to-put-this/ Share on other sites More sharing options...
GingerRobot Posted June 15, 2007 Share Posted June 15, 2007 It all depends on which files you want to be affected by the .htaccess file. If you want all the files on your host to be affected, it wants to be in the root directory. If the .htaccess file is only for stuff in one particular directory, you want it in that particular sub directory. Idealy, you want it to be the case where you can put it into the sub directory. Since .htaccess files are quite slow, you'll want to avoid slowing your entire site down by putting it into the root directory. Link to comment https://forums.phpfreaks.com/topic/55696-htaccess-where-i-suppose-to-put-this/#findComment-275200 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.