On Tue, Feb 5, 2013 at 3:32 PM, Riccardo Cohen
<r.co...@realty-property.com>wrote:

> Example : the catalog is at url : http://www.perspectives-**
> musicales.org/en/all-albums<http://www.perspectives-musicales.org/en/all-albums>
> This should be transparantly mapped to http://www.perspectives-**
> musicales.org/index.php/en/**all-albums<http://www.perspectives-musicales.org/index.php/en/all-albums>thanks
>  to the rewrite rule :
>
> RewriteRule ^en/(.*) ./index.php/en/$1
>
> My application uses then $_SERVER["PATH_INFO"] (and not
> $_SERVER["QUERY_STRING"]) to retreive url information. This worked
> perfectly until last month, because web4all.fr changed the whole system
> and separated apache from php, using fast cgi instead of mod_php.
>
-------------

> RewriteRule ^test2/(.*) ./test.php?$1
> - test2 : the rewrite rule works, but of course the url information is no
> more in path_info, it is in query_string as shown in the page content
>
> My host tried several searches on forums including this one, and could not
> find any answer. It seems to be an apache bug, but not sure, I have no bug
> number to give anyway. If it is a bug, it is demontrated by test1 I think.

Probably not an HTTPD bug. More likely a problem with the PHP fcgi
configuration.


> I know I can change my code to use query_string everywhere instead of
> path_info, but if I can avoid changing and testing all my websites it would
> be really great
>
This is the most reliable option. I use something like this:
RewriteRule ^en/(.*) ./index.php?page=en/$1


- Y

Reply via email to