Where do I find the .htaccess file in my account?
.htaccess
| scorpio wrote: |
| Where do I find the .htaccess file in my account? |
A ".htaccess" file is a file telling apache what to do with the files/directories in that directory and (if neeed) its subdirectories.
If there isn't one yet in a directory, then you need to create it (it's a plain text file) and put the instructions you need in there.
How do I create one?
If it is a text file, I can create one using notepad.
But what extension and name do I give.
Kindly help
If it is a text file, I can create one using notepad.
But what extension and name do I give.
Kindly help
You cannot create it on Windows.
It's extension on Windows is ".htaccess" which makes it a "nameless" file on Windows, which in turn, is obviously not allowed.
You have to create it through Directadmin. Or maybe if you are a little techie, you can use DOS to rename the file (I won't go into detail as it might confuse you).
http://www.google.com/search?q=creating+.htaccess
It's extension on Windows is ".htaccess" which makes it a "nameless" file on Windows, which in turn, is obviously not allowed.
You have to create it through Directadmin. Or maybe if you are a little techie, you can use DOS to rename the file (I won't go into detail as it might confuse you).
http://www.google.com/search?q=creating+.htaccess
Should this htaccess file be put in the main directory which contains the mail, domains, public_html directory, bash_logout files etc
public_html if you want it to affect your whole site, otherwise the directory etc
| mathiaus wrote: |
| public_html if you want it to affect your whole site, otherwise the directory etc |
I put it outside public_html directory.
It works for me.
Is that the right place to put it.?
| scorpio wrote: | ||
I put it outside public_html directory. It works for me. Is that the right place to put it.? |
You need to put it in the directory where you want to use it. It will also work in the subdirectories of that directory, depending on what you put in there.
Ok That is cleared up.
Related topics
