Skip to content

Improve support for .htaccess when installing or converting to Multisite #27

@johnbillion

Description

@johnbillion

When a site is converted to Multisite with wp core multisite-convert, or when Multisite is installed with wp core multisite-install, the relevant Multisite constants are added to wp-config.php, but nothing is added to .htaccess if the server is running on Apache.

Similarly, both of these commands provide an informational message saying "Don't forget to set up rewrite rules", but nothing about .htaccess is mentioned.

WP-CLI could either attempt to write to .htaccess itself, using the same rules that core generates after installing Multisite from the Tools -> Network Setup screen, or it could simply add an extra informational message about .htaccess.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions