Improve .htaccess parsing
This commit is contained in:
parent
9ed89ee96e
commit
ef0b2118ae
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ class URL
|
|||
|
||||
public function getPretty(): string
|
||||
{
|
||||
$htaccess = explode(PHP_EOL, file_get_contents(ROOT . '/.htaccess'));
|
||||
$htaccess = preg_split('/\r\n|\r|\n/', file_get_contents(ROOT . '/.htaccess'));
|
||||
$pretty_url = '';
|
||||
|
||||
foreach ($htaccess as $index => $line) {
|
||||
|
|
Loading…
Reference in a new issue