Skip to content

WordPress .htaccess is hard coded - autogenerate instead #2

@michaelmcandrew

Description

@michaelmcandrew

We are currently 'hard-coding' the .htaccess file here:

COPY --chown=civicrm:civicrm ./.htaccess /var/www/html

It seems like WordPress generates this file (not sure how but I think maybe in wp-admin/includes/network.php or wp-includes/class-wp-rewrite.php) at some point (including on save of the wp-admin/options-permalink.php page).

Might be better to detect that it is not present and auto-generate it instead, in case for whatever reason the hard coded one that we have created is not appropriate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions