cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Webpage not found after reuploading the site

$r = $_SERVER['REQUEST_URI']; $r = explode('/', $r); $r = array_filter($r); $r = array_merge($r, array()); $r = preg_replace('/\?.*/', '', $r); $pageURL = $r[1]; $navitem1="nav-item"; $navitem2="nav-item"; $navitem3="nav-item"; switch($pageURL) { case "index.html": $navitem1 ="active nav-item"; break; case "features.html": $navitem2 ="active nav-item"; break; case "about.html": $navitem3 ="active nav-item"; break; } The same code was working perfectly before but now when I reuploaded the complete website, the index page is perfectly opening but when I click on any of the navigation links it gives me an error of 404 file not found. In the errors file it tells  "PHP Notice: Undefined offset: 1"
0 REPLIES 0