Skip to content

Wrong htaccess directory check with bedrock #132

Description

@mrgesco

We are using the Bedrock WordPress boilerplate installation and are facing a PHP exception.

When it tries to detect the htaccess file

ABSPATH = "/var/www/html/wp/"
$folder = "/var/www/html/app/uploads/sucuri"
$folder = str_replace(ABSPATH, '', $folder);
$bpath = rtrim(ABSPATH, DIRECTORY_SEPARATOR);
return $bpath . '/' . $folder . '/.htaccess';

Results in

"/var/www/html/wp//var/www/html/app/uploads/sucuri/.htaccess"

Instead of

"/var/www/html/app/uploads/sucuri/.htaccess"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions