FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


.htaccess





Scorpio
Where do I find the .htaccess file in my account?
Bondings
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.
Scorpio
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
n0obie4life
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 Wink
Scorpio
Should this htaccess file be put in the main directory which contains the mail, domains, public_html directory, bash_logout files etc
mathiaus
public_html if you want it to affect your whole site, otherwise the directory etc
Scorpio
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.?
Bondings
scorpio wrote:
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.?

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.
Scorpio
Ok That is cleared up.
Related topics
htaccess Password Protection
.htaccess tutorial
CANT UPLOAD .htaccess, .htpasswd, .header, .footer
[tutor] How to protect images without htaccess using PHP
.htaccess IP Blocking
Custom error pages using .htaccess
A Question For .htaccess
.htaccess
Can you use .htaccess?
htaccess
.htaccess problem
htaccess files gone???
.htaccess i mod_rewrite
.htaccess .htpasswd
protecting a file with htaccess
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.