.htaccess file ??

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

Could anyone please enlighten me as to what this file is and where it may
have come from and what its for ? Its on the server side of my website and
had apparently caused my website to go down, Now the host's Easyspace.com
said they have re-named the file and now my websites up and running again,
Do I need to keep this file there as when I upload anything to my sight it
tells me its there and would I like to remove it !

TIA
 
Remove it.

..htaccess files are used on Apache UNIX server to manage permissions.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
Simply it is the 'permissions' file for Unix.

1) it handles ErrorDocument messages such as "Error 404 - File Not Found".
2) it handles password protection in conjunction with .htpasswd.

There is a multitude of resources on the 'net about this just Google
..htacess.
 
if you want to use customised ErrorDocuments for your 404, 501, 503, 400,
etc message, then you need to set up .htaccess like so:

ErrorDocument 400 http://www.iinet.net.au/~admurray/server/badsyntax.html
ErrorDocument 401 http://www.iinet.net.au/~admurray/server/unauthorised.html
ErrorDocument 403 http://www.iinet.net.au/~admurray/server/forbidden.html
ErrorDocument 404 http://www.iinet.net.au/~admurray/server/missing.html
ErrorDocument 500 http://www.iinet.net.au/~admurray/server/server.html
ErrorDocument 501
http://www.iinet.net.au/~admurray/server/notimplemented.html
ErrorDocument 502 http://www.iinet.net.au/~admurray/server/overloaded.html
ErrorDocument 503 http://www.iinet.net.au/~admurray/server/timeout.html


replace the above URLS with your own errors (click the above to see my error
messages).

put this .htaccess in your root folder.

If you use password protection, the .htaccess goes in the root folder; the
..htpasswd goes in the folder you want to protect, so if you request a page
in a folder called "photos" like www.yourUrl.com/photos/germany.jpg and you
have the htpasswd in that folder, you'll be prompted for the password and
username you created. Just look up .htpasswd and .htaccess on the 'net.
 
If the FP extensions are installed on a Unix/Linux server, FP installs
an .htaccess file to protect certain directories. Might not be a good
idea to remove it. If you want to insert lines into .htaccess, they
should be appended to the end of the FP version.
 
The poster said it was renamed, therefore it's a useless file.
Also, FrontPage can't or doesn't see or acknowledge .htaccess files.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
Steve, FP certainly knows the .htaccess file is are there. First,
because as I said an.htaccess is installed on a Nix server when the FP
extensions are installed. Second, because FP makes it a hidden file,
presumably hoping to discourage people from editing or removing it.

That said, since the purpose of FP's htaccess file seems solely to hide
and prevent access to certain files/directories, I guess, based on your
post, that it doesn't come to a screeching halt if the file is removed.
I've never wanted to tempt the FP gods by trying to do that.
 
Here is the .htaccess file created by FP2002 (I later upgraded to FP2003
but I don't think this was changed):

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName XXXXXXXXUSERNAME/SITENAME
AuthUserFile XXXXXXXXPATH-TO-_vti_pvt/service.pwd
AuthGroupFile XXXXXPATH-TO-_vti_pvt/service.grp
 
Back
Top