|
|
|
|
||||||
| comp.info.servers.unix Web servers for UNIX platforms. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I'm an htaccess newbie and I've been looking all over for this answer.
I've learned lots of interesting new things, but I can't seem to phrase the question in a way that gives me the answer. I have a directory protected by a password, but if you enter the URL without the 'www' you have to enter it twice because it gets redirect to www.blah.com. I've been told that I can modify this behaviour with mod_rewrite, but I'm not sure how... Any suggestions or pointers would be appreciated... |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Jakanapes <Jakanapes@aol.com> wrote:
> I have a directory protected by a password, but if you enter the URL > without the 'www' you have to enter it twice because it gets redirect > to www.blah.com. I've been told that I can modify this behaviour with > mod_rewrite, but I'm not sure how... > Any suggestions or pointers would be appreciated... What server? Apache? Create a virtual host for blah.com that redirects all requests to www.blah.com. Then declare your restricted directory for www.blah.com. If you've already done this then you're going to have to post more detail, preferably including the *relevant* parts of your configuration. Chris |
|
![]() |
| Outils de la discussion | |
|
|