httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Gerasimov" <denis.gerasi...@vekos.ru>
Subject RE: [users@httpd] URL Rewriting troubles
Date Thu, 21 Oct 2004 10:27:22 GMT

Yes, you right. I really used .htaccess file.
Thank you.

But now I am wondering why this URL is valid:

http://www.example.com////////// (type any number of slashes)

and is same to

http://www.example.com

Best regards, Denis Gerasimov
Outsourcing Services Manager,
VEKOS, Ltd.
www.vekos.ru


> -----Original Message-----
> From: Andre Malo [mailto:nd@perlig.de]
> Sent: Thursday, October 21, 2004 2:10 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] URL Rewriting troubles
> 
> * "Denis Gerasimov" <denis.gerasimov@vekos.ru> wrote:
> 
> > I spent some hours trying to solve this weird problem. Here is what I
> do:
> >
> > RewriteEngine On
> > RewriteBase /
> > RewriteRule  ^/$ /__index.html
> >
> > But it hasn't any effect. When I change the last line to
> >
> > RewriteRule  ^$ /__index.html
> >
> > it works. (Also works http://locahost///... - as many slashes as you
> want)
> > Everywhere in docs leading slash is used but it doesn't work in my case.
> >
> > Does anybody know why?
> 
> Because server context and directory context (.htaccess) are different,
> and
> the most docs just talk about the server context, where RewriteRules are
> mostly applied.
> 
> nd
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message