Skip to content

Enable apache mod_rewrite #197

@meirzamoodle

Description

@meirzamoodle

Hi,

Since Moodle has the $CFG->routerconfigured configuration, I’m curious if we need to install mod_rewrite by default?

So when the user sets the config to true and then adds .htaccess with the following configuration:

RewriteEngine On
RewriteRule ^api/rest/v2/openapi.json$ r.php/api/rest/v2/openapi.json [L]

The router can function properly.

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