Page 1 of 1

Mythbusters: modifying [one of or both] htaccess.txt and web.config.txt

Posted: Fri Mar 01, 2019 7:03 pm
by sozzled
Some people think that it's important to edit (that is to change the contents of) one, or the other or both of the files htaccess.txt and/or web.config.txt. That's a statement of fact. Some people really believe that!

I'm not going to argue or dispute that belief. If people think it's important to be able to edit (i.e. change the contents of) either (or both) the files htaccess.txt and/or web.config.txt then that's OK with me. If it makes people feel better that they can edit either or both of these files when it suits them then so be it. I don't want to make people feel unhappy.

If it makes you feel happier, you can even delete one or both of these two files, too. It won't make any difference to how your Joomla website continues to operate.

There are a few thousand files created on your Joomla website when you first install it. There are also a few thousand files replaced when you update Joomla from one version to the next. Between the time when you first create Joomla and when you update it to a later version, if you deleted some files from your website, some files are re-created.

Replacing (or, in some cases, re-creating) some files when you update Joomla from one version to the next is neither a good thing nor a bad thing. It's just a "thing". It's just how the Joomla! Update component works.

As an example of some of the files that are always replaced when you update Joomla from one version to the next, here is a very short list of the ones that are located in the website's root folder:
  • htaccess.txt
  • index.php
  • LICENSE.txt
  • README.txt
  • robots.txt.dist
  • web.config.txt
Note: please don't delete the file index.php

Therefore, if you feel the need to edit (that is, change the contents of) one or more of these files then remember that any changes you make to these files will be lost when you update Joomla to a later version. OK?

If you still feel that you must update one or more of these files then don't let me stop you but, please, don't ask for my help if you want to edit/change the contents of these files. ;)