.htaccess tutorial

htaccess Elite


Passwords x Allow from...

Using PHP in and with htaccess

Passwords x Allow from...

New postby cbrito » 12 Jan 2009 17:39

Friends,

This is my first time.

I want to do:

1. To allow some people to enter in my sub-domain, using his password.

2. To permite the http://translate.google.com to enter in my sub-domain, WITHOUT a password (to translate the site).

I am 101% new in htaccess, but I write the following htaccess file:

AuthType Basic
AuthName "teste4"
AuthUserFile "/home/myID/.htpasswds/public_html/teste4/passwd"
<limit GET>
satisfy any
order allow,deny
Allow from http://translate.google.com
require valid-user
</limit>

But I do not see any request for name and password, instead I see an error message, 500.

On other words (because of my Bostonian accent): All authorized people (w/passwords) will access, but google translate will access without password.

What are the correct syntax for the above case? Help! My server is Apache.

Best Regards,
C Brito
cbrito
 
Posts: 2
Joined: 12 Jan 2009 15:42

Return to PHP and htaccess