From 6109d60496ec55989be1068a069afc7cbbce249a Mon Sep 17 00:00:00 2001 From: Daniel Martin Date: Mon, 6 Jul 2015 13:43:11 -0400 Subject: [PATCH] Use (?s) option in RewriteRules The reason for doing this is that apparently some Apache binaries are distributed linked to a PCRE library that considers character 0x85 a new line like character. On such Apache instances, the redirect rules without (?s) will not work for URLs containing characters that have a 0x85 byte in their UTF-8 expansion. --- .htaccess | 4 ++-- public/.htaccess | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.htaccess b/.htaccess index a4cbb93..b88bba0 100755 --- a/.htaccess +++ b/.htaccess @@ -1,5 +1,5 @@ RewriteEngine on RewriteRule ^$ public/ [L] - RewriteRule (.*) public/$1 [L] - \ No newline at end of file + RewriteRule ((?s).*) public/$1 [L] + diff --git a/public/.htaccess b/public/.htaccess index 7a9d6fe..5fe17fa 100755 --- a/public/.htaccess +++ b/public/.htaccess @@ -3,5 +3,5 @@ AddDefaultCharset UTF-8 RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f - RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L] + RewriteRule ^((?s).*)$ index.php?_url=/$1 [QSA,L]