| htpasswd plus Rewrite problem [message #884] |
Mon, 18 February 2008 15:41 |
taki sobie user Messages: 1 Registered: February 2008 |
|
|
|
Hey.
I guess that problem is somewhere with my RewriteRule:)
I got a folder called 'private' in my vhost directory - it is working good. But I'd like to make a 'subdomain' with Rewrite.
When I am accessing page via http://example.org/private/ it ask about password and if I click cancel redirect me to 401 error page.
But when I am trying to make a subdomain
| Quote: |
RewriteCond %{HTTP_HOST} ^p\.example\.org [OR]
RewriteCond %{HTTP_HOST} ^private\.example\.org
RewriteCond %{REQUEST_URI} !private/
RewriteRule ^(.*)$ private/$1 [L]
| or with |
RewriteRule ^(.*)$ private/ [L]
|
it goes directly to my 401 error page - without asking about password.
Do you have any idea what is wrong:)?
Yours,
taki sobie user
|
|
|