Skip to content

Instantly share code, notes, and snippets.

@MajideND
Created February 23, 2022 08:35
Show Gist options
  • Save MajideND/55338f2e0cad000a75f7047fbae25b11 to your computer and use it in GitHub Desktop.
Save MajideND/55338f2e0cad000a75f7047fbae25b11 to your computer and use it in GitHub Desktop.
<?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