-
-
Save brentini/2957c3b0a283e7c5aafcf95c0b63a3c2 to your computer and use it in GitHub Desktop.
Add this to the beginning of your index.php file. Useful when adding SSL to Wordpress applications. #wordpress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$request = 'code_in_the_url'; | |
$response = 'code_returned'; | |
if ( $_SERVER['REQUEST_URI'] === ( '/.well-known/acme-challenge/' . $request ) ) { | |
echo $request . '.' . $response; | |
exit; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment