I am going to try and correct/explain some popular misconceptions/beliefs over this very powerful .htaccess file with no offence to larry71 who just covered the subject
Windows operating system will not allow you to create an ,htaccess file.
i have not known a windows server to use a .htaccess file nativley.
There are ways to get around that. In Notepad, I think you just place the name in quotes, as in ".htaccess"
wil sometimes work on older IIS systems
.htaccess is a hidden system file in Unix, Linux and Apple OSX. I just read somewhere that in Apple you cannot even access a system file, and therefore you must keep an editable copy called htaccess.txt, make changes and save the htaccess.txt, then save again as .htaccess.
you could just zauthfile it to save time but i am not a MAC user.
In Linux and Unix, filenames that begin with a dot are hidden files, usually also system files. But you can show hidden files and folders, and edit them. Naturally, the user is cautioned to have a good reason to edit a system file, and know a little something about what it does before slogging away. Next thing might be a computer that will not run anymore!
The Apache server uses <snip>
thats a miss-match of several different copy and paste items. you can also count vps in that paragraph
an Apache server still uses it as a server configuration file.
if its named correctly.
A Windows IIS server does not use .htaccess.
as you have already said.
Never upload a copy of your Apache server's ,htaccess file with the htaccess.txt file name. That makes your server configuration settings a matter of public record, just like any other text document posted to the site. If you must upload your .htaccess file as htaccess.txt, immediately rename the server copy to .htaccess.
can we clarify that where you have put ,htaccess
you actually mean .htaccess
. it is always recommended to rename the htaccess.txt to .htaccess on site setup. the reasons it has the .txt extension has already been explained, along with the fact cpanel forces a .htaccess creation on account creation. in addition if you want to know what a joomla site has as an htaccess.txt, just download it from joomla. I wuld assume that any changes you make to your .htaccess would be done directly and not by uploading and then renaming the file.
I hope the OP question has now been answered/explained and some people have learned things.
anyone curious on joomla and IIS then see viewforum.php?f=543