Re: apache2 2.4.56-1 redirects not normal working appeared %3f

Pavel Ammosov <[email protected]>
Newsgroups gmane.linux.debian.user.russian
Message-ID <[email protected]>
On Tue, Mar 21, 2023 at 01:15:08PM +0300, alex wrote:
> RewriteRule ^test\.php$ https://www.test.com/? [R=301,L]
> After upgrading to the 2.4.56-1
> Result
> test.com/test.php 301 > https://www.test.com/%3f

п■п╣п╧я│я┌п╡п╦я┌п╣п╩я▄п╫п╬, п©п╬я│п╩п╣ п╬п╠п╫п╬п╡п╩п╣п╫п╦я▐ apache2 п╡ bullseye я┌п╟п╨п╬п╧ я─п╣п╢п╦я─п╣п╨я┌ я│я┌п╟п╩ я█п╨я─п╟п╫п╦я─п╬п╡п╟я┌я▄ п╡п╬п©я─п╬я│п╦я┌п╣п╩я▄п╫я▀п╧ п╥п╫п╟п╨ 
п╡ п╫п╬п╡п╬п╪ URL. п²п╬ п╣я│я┌я▄ п╦ я┘п╬я─п╬я┬п╦п╣ п╫п╬п╡п╬я│я┌п╦, п╡ я│я┌п╟я─п╬п╪ apache2 (2.4.54-1~deb11u1) п╥п╫п╟п╨ п╡п╬п©я─п╬я│п╟ п©я─п╬я│я┌п╬ п╦я│я┤п╣п╥п╟п╩:

| curl -v http://localhost:1289/test.php
| * Connected to localhost (::1) port 1289 (#0)
| > GET /test.php HTTP/1.1
| [...]
| >
| < HTTP/1.1 301 Moved Permanently
| < Server: Apache/2.4.54 (Debian)
| < Location: http://example.com/
|                              ^^^

я┌.п╣.  п╪п╬п╤п╫п╬ п©я─п╬я│я┌п╬ я┐п╠я─п╟я┌я▄ я█я┌п╬я┌ п╡п╬п©я─п╬я│. п░ п╣я│п╩п╦ п╬п╫ п╦я│п©п╬п╩я▄п╥п╬п╡п╟п╩я│я▐ п╢п╩я▐ я┐п╢п╟п╩п╣п╫п╦я▐ п©п╟я─п╟п╪п╣я┌я─п╬п╡ URL п╦п╥ п╫п╬п╡п╬пЁп╬ п╟п╢я─п╣я│п╟,
я┌п╬ п©я─п╬я│я┌п╬ п╢п╬п╠п╟п╡п╦я┌я▄ я└п╩п╟пЁ QSD (https://httpd.apache.org/docs/2.4/rewrite/flags.html#flag_qsd):

RewriteRule ^test\.php$ https://www.test.com/ [R=301,L,QSD]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.