htaccess Tutorials [Add Text]

This will make it, so that when you access a file on the server. It will display it as text. This is useful if say you wanted to access and have the actual source code display. It will only affect the file in the directory where the .htaccess file is. And it only works on the file with extensions you specify.

Well just paste the following code into notepad:
AddType text/html .shtml .cgi .zip .htaccess .php
You can change it to the extensions you want, each separated by a single space).

Save it with file name as .htaccess, and the file type as All Files.

Now upload (in ASCII) that fucker into the directory you want it to take affect in. It will affect the sub folders too, so I suggest you don't put it in your root.

If it didn't work, then you saved the file as .htaccess.txt , didn't upload the file in ASCII, may need to CHMOD it to 644, or your host straight up doesn't support it.

If you find this information inaccurate or have questions post in the forums