Web Hosting Talk







View Full Version : Screwed up my .htaccess


toggle
05-16-2001, 12:40 PM
I've set a bulletin board and wanted to .htaccess the index.php file in its 'admin' folder.

I created an .htaccess file, FTP'd it, created .htpasswd through Telnet, and everything worked fine.

This was my first time doing an .htaccess. Like I said, everything worked normally, except that I noticed I can't see .htaccess or .htpasswd in FTP or Telnet. Why that is, I don't know.

Then I decided to make one minor in .htaccess change (the AuthName). I did so, re-upped the file to 'admin', and now when I attempt to access the admin folder through my browser I get an Error 500 which states:

-------------------------------------------------

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@xx*********** and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/1.3.14 Server at www.xx*********** Port 80

-------------------------------------------------

Oh crap. What did I do & how do I fix it?

Many thank,
'tog'

toggle
05-16-2001, 12:50 PM
Never mind. I just figured it out. The original AuthName was one word, and the new one I had created was two seperate words. I just squeezed them into one word, re-upped .htaccess, and now it's working again. Wacky.

However, I would still like to know why I can't see those files in FTP or Telnet.

Thanks,
'tog'

thewitt
05-16-2001, 12:53 PM
Your "." files are not showing up in your ftp client because it's not configured to do so. These files are invisible unless you tell your client to display them. In your telnet client, ls -a will show your invisible files.

Which FTP client are you using? Most can be configured somewhere to include the invisble files.

The error message you are getting from your edited .htaccess file should also show up in your server error log. Check the log for your website to see the text of the actual error message and go fix your edit - or just remove the edit you made to your .htaccess file...

-t

toggle
05-16-2001, 01:24 PM
Thanks! I'm obviously new to much of this and was really wondering about that.

I'm using the CuteFTP 4 and can't find any way to configure it for invisible files. I've used BulletProofFTP before, so maybe I'll reinstall it and try on there. Although I've never used WS_FTP and have been meaning to try it for a while, so maybe I'll install it & try with that instead.

'tog'

thewitt
05-16-2001, 01:42 PM
Edit/Filter/Options Tab

Remote Filter = -a

-t