httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <jos...@slive.ca>
Subject Re: Apache 2 directory/files
Date Tue, 11 Dec 2001 03:16:56 GMT

On Tue, 11 Dec 2001, Mark Constable wrote:

> On Tue, 11 Dec 2001 12:56, joshua@slive.ca wrote:
>
> > > > RewriteRule ^/en(.*) /path/to/real/script?$1
> > > >
> > > > Of course, you'll need to change your scripts to look in QUERY_STRING
> > > > instead of PATH_INFO, which could be a real pain.
> > >
> > > And that blows away one of the main reasons for doing
> > > this... search_engine_friendly URLs.
> >
> > No it doesn't.  The RewriteRule performs an internal redirect that is
> > invisible to the client.  They still see http://yourhost/en/whatever
>
> Thanks for clarifying that. I think http://yourhost/en
> does an internal redirect to http://yourhost/en/ (if it
> happens to be a folder)

No, it actually does an external redirect in this case.  (The URL changes
in your browser, so the redirect must be external.)

> so would there be any difference
> in overhead between using a folder or a Redirect ?

I doubt there would be a big difference.

To be frank, I don't actually understand how your folder technique is
working, so I can't say for sure.

Joshua.



---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message