Found a BUG, don't know what is problem or Apache2.4 WAMP Settings
Posted by: hgaoping (36.250.94.---)
Date: January 04, 2017 01:05AM

I use mod_rewrite module, some characters will not run into your PHP application, tip 404 directly

For example
This URL is normal: [www.zhongziyu.net] (Chinese, the meaning of music)

This URL is wrong: [www.zhongziyu.net] (Chinese, the meaning of travel)


The next link appeared Not Found 404 form Apache/2.4.23

===================================================

Obviously, my PHP is certainly not wrong, because there are no running in PHP

Options: ReplyQuote
Re: Found a BUG, don't know what is problem or Apache2.4 WAMP Settings
Posted by: hgaoping (36.250.94.---)
Date: January 04, 2017 01:16AM

Almost forgot, is Wamp3.0.6

Options: ReplyQuote
Re: Found a BUG, don't know what is problem or Apache2.4 WAMP Settings
Posted by: Otomatic (Moderator)
Date: January 04, 2017 05:18PM

Hi,

Not a Wampserver problem.
I think that the problem is in the rewrite rules in the .htaccess file.

For example, see:
[stackoverflow.com]
or
[stackoverflow.com]

There are many discussions about this problem.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Found a BUG, don't know what is problem or Apache2.4 WAMP Settings
Posted by: hgaoping (36.250.94.---)
Date: January 06, 2017 01:04PM

Why am I in the old version of the Wamp no such problems?
Is a set of PHP program with the same

Options: ReplyQuote
Re: Found a BUG, don't know what is problem or Apache2.4 WAMP Settings
Posted by: hgaoping (36.250.94.---)
Date: January 06, 2017 01:11PM

Code is the same, I have two servers, one using the old version wamp: no problem
Use a new wamp, appear this problem

I now if fall back to the old version of the wamp again want to be a trouble

Options: ReplyQuote
Re: Found a BUG, don't know what is problem or Apache2.4 WAMP Settings
Posted by: Otomatic (Moderator)
Date: January 06, 2017 02:36PM

Hi,

> Use a new wamp, appear this problem
The Apache versions have evolved, the rules also.
In no way is this a problem related to Wampserver itself.
Go to the links I gave previously.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Found a BUG, don't know what is problem or Apache2.4 WAMP Settings
Posted by: hgaoping (36.249.111.---)
Date: January 07, 2017 02:35AM

<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>


this is my .htaccess file

If a problem cannot be executed to PHP, that obviously is a problem of Apache related rules.
Whether can modify this file to solve the problem

I can't find the answer from your URl

Can help to modify the .htaccess file

Options: ReplyQuote
Re: Found a BUG, don't know what is problem or Apache2.4 WAMP Settings
Posted by: hgaoping (36.249.111.---)
Date: January 07, 2017 03:37AM

I modified the file

#RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
RewriteRule .* index.php/$0 [PT]

PHP can accept to �

Is this the new version of Apache BUG?

Options: ReplyQuote
Re: Found a BUG, don't know what is problem or Apache2.4 WAMP Settings
Posted by: hgaoping (36.249.111.---)
Date: January 07, 2017 03:47AM

this is print_r($_SERVER); results


REQUEST_RUI AND REDIRECT_URL It's right!

[REDIRECT_URL] => /cha/情.html
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[REQUEST_URI] => /cha/%E6%83%85.html
[SCRIPT_NAME] => /index.php
[PATH_INFO] => /cha/��
[PATH_TRANSLATED] => redirect:\index.php\cha\��\��
[PHP_SELF] => /index.php/cha/��
[REQUEST_TIME_FLOAT] => 1483757149.329
[REQUEST_TIME] => 1483757149



Edited 1 time(s). Last edit at 01/07/2017 03:48AM by hgaoping.

Options: ReplyQuote
Re: Found a BUG, don't know what is problem or Apache2.4 WAMP Settings
Posted by: hgaoping (36.249.111.---)
Date: January 07, 2017 03:51AM

Is the PATH_INFO Apaache provided to PHP data wrong

Options: ReplyQuote
Re: Found a BUG, don't know what is problem or Apache2.4 WAMP Settings
Posted by: hgaoping (36.249.111.---)
Date: January 07, 2017 04:00AM

Strings are all in utf-8

Options: ReplyQuote
Re: Found a BUG, don't know what is problem or Apache2.4 WAMP Settings
Posted by: Otomatic (Moderator)
Date: January 07, 2017 11:13AM

Hi,

> PATH_INFO] => /cha/��
> [PATH_TRANSLATED] => redirect:\index.php\cha\��\��
> [PHP_SELF] => /index.php/cha/��

If you see � characters, It means that your system is not properly configured to support utf-8 or that the file (s) is not coded utf-8 and mainly the .htaccess file itself.

see : [httpd.apache.org]

The questions you ask are not the domain of Wampserver.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons



Edited 1 time(s). Last edit at 01/07/2017 11:20AM by Otomatic.

Options: ReplyQuote


Sorry, only registered users may post in this forum.