apers
If you've already made the change to the api/.htaccess file of adding [R,L] then that error means one of three things:
- URL Rewrite module is not installed or enabled in your Apache instance. Google the correct command to check that for your specific OS.
- The URL Rewrite module may be installed and enabled but URL Rewriting is not enabled for the site. See the example below of a proper
<Directory> block that allows URL rewrites.
- The URL is returning like your earlier (now deleted) post with some bull-crap tacked on to it. A proper redirect should look like:
https://domain.tld/api/auth/oauth2?code=xxx&state=xxx&session_state=xxx
Apache Site Config Example
Note: This is obviously an example. Your config may look different - the patch will definitely be different.
<Directory "/var/www/your_site_root/">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Cheers.