Luuuk Posted August 8, 2018 Posted August 8, 2018 Hi, Configuration: IPB 4.3.5, Windows Server 2008 R2 + IIS 7.5, PHP 7.2.7, MySQL 5.6.14. After upgrade from 3.4.9 to 4.3.5 removing "index.php" creates a problem. If I enable IPB4 option Rewrite URLs, links containing Unicode characters return the following error: Quote The page isn’t redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. Links without the characters work. If I disable the IPB4 option Rewrite URLs, all links work as expected. Does not work: https://www.mysite.pl/forum/38-dzia%C5%82-pomocy-dora%C5%BAnej/ Works: https://www.mysite.pl/index.php?/forum/38-dzia%C5%82-pomocy-dora%C5%BAnej/ web.config (IIS) <rule name="pretty urls" enabled="true" stopProcessing="true"> <match url="." ignoreCase="false" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="/index.php" appendQueryString="true" /> </rule> I tried many things, swapping IIS settings and flags, etc. I also tried to switch from IIS Rewrite module to ISAPI Rewrite and no luck. # Helicon ISAPI_Rewrite configuration file # Version 3.1.0.112 RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [NE,L] [Yes, originally there was only "L" like in .htaccess provided by IPB, but I was testing also other flags] The same settings worked just fine in IPB 3.x. Does anybody encounter a similar problem after upgrading to IPB4 or have any suggestions? I created a ticket, but no help. First, I was told that "UTF-8 conversion did not process properly" and I need to revert to 3.x, so they can fix database and do the upgrade for me. I was prepared for such a request, and instead of rolling the whole software without any guarantees, I provided a fully working mirror with a database taken just before the upgrade. Then I was told that they can't proceed, because I'm running Windows Server, the further diagnostics could be if I move to a Linux host... EDIT: Typos fixed.
Adlago Posted August 8, 2018 Posted August 8, 2018 Check encoding your htaccess file before adding ips code rewrite. Sometimes Notepad++ does jokes and it is possible for your file htaccess to have an encoding ANSI
Luuuk Posted August 8, 2018 Author Posted August 8, 2018 Unfortunately, that is not a case. Both the quoted files were not ANSI. I rather suspect that there is something related to "double encoding" in URLs, but I can't isolate where is the problem exactly.
Luuuk Posted August 9, 2018 Author Posted August 9, 2018 Problem solved! I deployed a registry fix described in KB2277918 (creating FastCGIUtf8ServerVariables value set to REQUEST_URI).
Recommended Posts
Archived
This topic is now archived and is closed to further replies.