What should I do if I get an API v1 not enabled error after updating Ministra TV Platform to version 5.6.1?
After upgrading Ministra TV Platform to version 5.6.1, you may receive an API v1 not enabled message when you request API v1.
This error occurs due to an attempt to use the request
Edit the file
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
to
RewriteRule ^(.*)$ v1/index.php?q=$1 [L,QSA]
The contents of the file
<IfModule mod_rewrite.c> RewriteEngine on RewriteRule .* - [env=TARGET:API] RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteCond %{HTTP_HOST} ^v([^\.]+)\.api\..+$ RewriteRule ^(.*)$ api_v2.php?_resource=$1 [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ v1/index.php?q=$1 [L,QSA] </IfModule>