Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable apache mod_rewrite #197

Closed
meirzamoodle opened this issue Feb 27, 2025 · 4 comments
Closed

Enable apache mod_rewrite #197

meirzamoodle opened this issue Feb 27, 2025 · 4 comments

Comments

@meirzamoodle
Copy link

meirzamoodle commented Feb 27, 2025

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.

@andrewnicols
Copy link
Contributor

No need for mod_rewrite:

FallbackResource /r.php

@andrewnicols
Copy link
Contributor

@andrewnicols
Copy link
Contributor

#196

@meirzamoodle
Copy link
Author

Thanks, @andrewnicols !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants