Home » Htaccess Tools » Questions regarding htaccess » htpasswd plus Rewrite problem
htpasswd plus Rewrite problem [message #884] Mon, 18 February 2008 15:41
taki sobie user  is currently offline 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
Previous Topic:help! How do I redirect an unautorized user with htaccess ??
Next Topic:subdomain rewritemap issue
Goto Forum:
  


Current Time: Mon May 12 01:08:47 CEST 2008
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software