Jump to content

.htaccess where i suppose to put this?


bilis_money

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.