diff --git a/.htaccess b/.htaccess index da73ccc..26100ba 100755 --- a/.htaccess +++ b/.htaccess @@ -103,7 +103,7 @@ RewriteRule ^sitemap\.xml$ /views/sitemap.php [L,NC] RewriteRule ^add_code$ /views/add_code.php [L,NC] RewriteRule ^play/?$ /views/index.php?page=play [L,NC,QSA] RewriteRule ^(playground|r|demo|try|sandbox)/?$ /play [R=301,L,NC,QSA] -RewriteRule ^migrate$ /views/migrate.php [L,NC,QSA] +# RewriteRule ^migrate$ /views/migrate.php [L,NC,QSA] RewriteRule ^quickstart/?$ https://psalm.dev/docs/running_psalm/installation/ [R=301,L] RewriteRule ^contribute/?$ /views/contribute.php [L,NC] RewriteRule ^support/?$ /views/support.php [L,NC] diff --git a/views/migrate.php b/views/migrate.php index 959d54d..fd46e4c 100644 --- a/views/migrate.php +++ b/views/migrate.php @@ -7,6 +7,9 @@ * It can only apply migrations that are already committed, and applied ones are skipped, so repeated calls are harmless. */ +// Disabled between migrations. To apply a new one: delete the next line and uncomment the ^migrate$ rule in .htaccess. +http_response_code(404); exit; + ini_set('display_errors', '0'); error_reporting(E_ALL); header('Content-Type: text/plain; charset=utf-8');