httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] mod_rewrite: Prevent stripping of URL
Date Thu, 27 Apr 2006 19:03:43 GMT
On 4/26/06, Stefan Brandt <brandt.stefan@gmx.net> wrote:
> Hello,
>
> when using mod_rewrite in an .htaccess-file (per-directory config files)
>    Apache automatically strips the directories from the request URL.
>
> Is there any configuration option to influence this behaviour?
>
> In my steup the .htaccess file is stored in a subdirectory (for example
> /de/)of the DocumentRoot.
>
> When calling a URL like:
>
> http://myhost.com/de/en/index.html
>
> Apache strips the URL into "index.html". So the information about the
> current language (symbolized by the "/en/"-part in the URL) is lost.
>
> Is there a way to get this information "back" from the URL so i can pass
> it as a parameter to my CMS?

It's in %{REQUEST_URI} I believe.

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


Mime
View raw message