httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yehuda Katz <>
Subject Re: [users@httpd] moving from mod_php to mod_fcgid : rewrite problem
Date Thu, 07 Feb 2013 15:50:54 GMT
On Tue, Feb 5, 2013 at 3:32 PM, Riccardo Cohen

> Example : the catalog is at url : http://www.perspectives-**
> This should be transparantly mapped to http://www.perspectives-**
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 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

> 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

View raw message