UnlimitedMB.comUnlimitedMB.com
Home    |    About Us    |    Forums    |    Signup    |    Login    |    Support
UnlimitedMB.com


 
UnlimitedMB.com



Go Back   UnlimitedMB.com Forums > Web Hosting > Account Services

Reply
 
Thread Tools Display Modes
.htaccess 500 Internal Server Error
  #1  
Old 04-11-2008
xst xst is offline
Member
 
Join Date: Jan 2007
Location: Under The Rock
Posts: 81
Send a message via MSN to xst
Default.htaccess 500 Internal Server Error

I'm trying to use a .htaccess file and every time I get a 500 server internal error.
I use the same .htaccess on my other host just fine. I thought .htaccess was allowed on paid accounts ? Any tips would be appreciated.
Reply With Quote
  #2  
Old 04-11-2008
slyvion slyvion is offline
Member
 
Join Date: Sep 2007
Location: New Zealand
Posts: 98
Send a message via MSN to slyvion
Default

you cant use .htaccess read some of the stickys they will help you.
Reply With Quote
  #3  
Old 04-11-2008
xst xst is offline
Member
 
Join Date: Jan 2007
Location: Under The Rock
Posts: 81
Send a message via MSN to xst
Default

Quote:
Originally Posted by slyvion View Post
you cant use .htaccess read some of the stickys they will help you.

http://forum.unlimitedmb.com/showthr...light=htaccess


Quote:
Originally Posted by UnlimitedMB View Post
We will probably add them to the control panel soon.

However noth these functions are already possible:
1. use ftp to move files
2. can be done on paid accounts with htaccess

I did read and read, then I read more.

Last edited by xst; 04-11-2008 at 07:06 AM..
Reply With Quote
  #4  
Old 04-11-2008
UnlimitedMB UnlimitedMB is offline
Administrator
 
Join Date: Jun 2006
Posts: 3,499
Default

It means you have made a mistake in your code.
__________________
Eric,
Admin
Reply With Quote
  #5  
Old 04-11-2008
xst xst is offline
Member
 
Join Date: Jan 2007
Location: Under The Rock
Posts: 81
Send a message via MSN to xst
Default

Thanks for the reply.

I am using this site to make the code

http://www.tools.dynamicdrive.com/password/

These are the codes I'm using for each file

.htaccess
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /members/files/.htpasswd
AuthGroupFile /dev/null
require valid-user


.htpasswd
username1:11qUL4NWjGdI2
Reply With Quote
  #6  
Old 04-11-2008
UnlimitedMB UnlimitedMB is offline
Administrator
 
Join Date: Jun 2006
Posts: 3,499
Default

I tried those two files and it works fine for me, i get the password prompt.
Make sure you have the AuthUserFile path set right, or just leave it out completely.

a safer way would be
Code:
AuthName "Restricted Area" 
AuthType Basic 
AuthUserFile .htpasswd 
require valid-user
If you use a path remember it is a full path not relative.
ie "AuthUserFile /members/files/.htpasswd" is incorrect
"AuthUserFile /hosted/subs/ulmb/....../members/files/.htpasswd" is correct.
__________________
Eric,
Admin
Reply With Quote
  #7  
Old 04-11-2008
xst xst is offline
Member
 
Join Date: Jan 2007
Location: Under The Rock
Posts: 81
Send a message via MSN to xst
Default

Thanks got it working. How do you go about hiding a few files ? such ass the .htaccess, .htpasswd, , .txt and the index.php ?

I tried adding this to the .htaccess

IndexIgnore .htaccess
IndexIgnore .htpasswd
IndexIgnore .txt
IndexIgnore index.php

Thanks again
Reply With Quote
  #8  
Old 04-11-2008
slyvion slyvion is offline
Member
 
Join Date: Sep 2007
Location: New Zealand
Posts: 98
Send a message via MSN to slyvion
Default

hmm so you can use .htaccess
Reply With Quote
  #9  
Old 04-11-2008
UnlimitedMB UnlimitedMB is offline
Administrator
 
Join Date: Jun 2006
Posts: 3,499
Default

All files are already hidden (directory indexes are turned off) so IndexIgnore will do nothing.
The server prevents anyone from downloading .htaccess or .htpasswd files.
__________________
Eric,
Admin
Reply With Quote
  #10  
Old 04-12-2008
xst xst is offline
Member
 
Join Date: Jan 2007
Location: Under The Rock
Posts: 81
Send a message via MSN to xst
Default

Thanks, but I know htey can't downloaded or anything. But theres no way to have them not shown on an index ? Cause I see them on mine. No big deal, just trying to make it as clean as possible. Thanks again.
Attached Images
File Type: png xstfiles.png (7.7 KB, 3 views)
Reply With Quote
Reply

« Previous Thread | Next Thread »
Thread Tools
Show Printable VersionShow Printable Version
Email this PageEmail this Page
Display Modes
Linear ModeLinear Mode
Hybrid ModeSwitch to Hybrid Mode
Threaded ModeSwitch to Threaded Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Rules
Forum Jump


All times are GMT. The time now is 10:34 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.







 



UnlimitedMB.com © 2006
Terms of Use | Report Abuse