Created
February 23, 2022 08:35
-
-
Save MajideND/55338f2e0cad000a75f7047fbae25b11 to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
//This is start of code to replace | |
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) { | |
return false; | |
} | |
require_once __DIR__.'/public/index.php'; | |
//End of old code | |
//You must replace it with below code :) | |
if ($uri !== '/' && file_exists(__DIR__.'/public_html'.$uri)) { | |
return false; | |
} | |
require_once __DIR__.'/public_html/index.php'; | |
//End of new code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment