This should be done using a helper PHP file and AJAX for the client side, and then using the same check in register/index.php. The helper file should have a redirect to the index in the .htaccess.
This should be done using a helper PHP file and AJAX for the client side, and then using the same check in register/index.php.
The helper file should have a redirect to the index in the .htaccess.