You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Steinhőfer Gábor <sg...@absolutionet.hu> on 2005/03/14 12:36:23 UTC

[users@httpd] mod_rewrite bug on 64bit??

Hi All!

I have some problem with Apache, Rewite on 64bit:
system:
x86_64
apache:
ii  apache         1.3.33-4
ii  apache-common  1.3.33-4
ii  apache-utils   1.3.33-4
ii  apache2-utils  2.0.53-5
ii  libapache-mod- 4.3.10-9
debian 3.1
kernel 2.6

my goal:
www.domain.hu/redirect/35234 rewrite to www.domain.hu/redirect.php?id=35234

so, try it in explorer:
www.domain.hu/redirect/35234

with the followinf .htaccess (just 2 lines because of test):
RewriteEngine On
RewriteRule ^redirect/([a-zA-Z0-9]{1,11}) /redirect.php?id=$1 [L,NC]

and here is the log:
(3) [per-dir /vhost/www/www.domain.hu/] add path-info postfix:
/vhost/www/www.domain.hu/redirect.php ->
/vhost/www/www.domain.hu/redirect.php/1111
(3) [per-dir /vhost/www/www.domain.hu/] strip per-dir prefix:
/vhost/www/www.domain.hu/redirect.php/1111 -> redirect.php/1111
(3) [per-dir /vhost/www/www.domain.hu/] applying pattern
'^redirect/([a-zA-Z0-9]{0,11})' to uri 'redirect.php/1111'
(1) [per-dir /vhost/www/www.domain.hu/] pass through
/vhost/www/www.domain.hu/redirect.php

I think its try to detect the file, and the redirect automatically got the
extension: .php Why?! and begin to rewrite

If the script file name not redirect.php, rather than do_redirect.php (so,
it doesnt find redirect.php in the directory) then everything goes without
error.
This rewrite goes on other "clone system", everything is same, but 32bit,
not amd opteron 64bit

Any idea?!
Its a bug? or what?

Thanks
G.



---------------------------------------------------------------------
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