Arduino Wifi Shield Load html site (multiple files on SD card) only one file wrk

#include <SPI.h>
#include <Ethernet.h>
#include <WiFi.h>
#include <SD.h>

const char* ssid = "yourssid";
const char* password = "yourpasswd";

//byte mac[] = {0x7C,0x67,0xA2,0x3A,0x6F,0xDD};
WiFiServer server(80);

File webPage;
File webPage2;

void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(5, OUTPUT); // set the LED pin mode

delay(10);

// We start by connecting to a WiFi network

Serial.println();
Serial.println();
Serial.print("Connecting to ");
Serial.println(ssid);

WiFi.begin(ssid, password);

while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}

Serial.println("");
Serial.println("WiFi connected.");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());

server.begin();

Serial.println("Initializing SD card...");
if(!SD.begin(4))
{
Serial.println("ERROR - SD card initialization failed!");
return;
}
Serial.println("SUCCESS - SD card initialized.");
/{
if(!SD.exists("index.htm"))
{
Serial.println("ERROR - Can't find index.htm file!");
}
Serial.println("SUCCESS - Found index.htm file.");
}
/

if(!SD.exists("home.htm"))
{
Serial.println("ERROR - Can't find home.htm file!");
}
Serial.println("SUCCESS - Found home.htm file.");

{
if(!SD.exists("student_login.htm"))
{
Serial.println("ERROR - Can't find student_login.htm file!");
}
Serial.println("SUCCESS - Found student_login.htm file.");
}
/*
{
if(!SD.exists("student_session.htm"))
{
Serial.println("ERROR - Can't find student_session.htm file!");
}
Serial.println("SUCCESS - Found student_session.htm file.");
}
{
if(!SD.exists("teacher_login.htm"))
{
Serial.println("ERROR - Can't find teacher_login.htm file!");
}
Serial.println("SUCCESS - Found teacher_login.htm file.");
}
{
if(!SD.exists("teacher_session.htm"))
{
Serial.println("ERROR - Can't find teacher_session.htm file!");
}
Serial.println("SUCCESS - Found teacher_session.htm file.");
}*/

}

void loop() {
// put your main code here, to run repeatedly:
WiFiClient client = server.available();
if(client)
{
boolean currentLineIsBlank = true;
while(client.connected())
{
if(client.available())
{
char c = client.read();
if(c == '\n' && currentLineIsBlank)
{
client.println("HTTP/1.1 200 OK");
client.println("Content-Type: text/html");
client.println("Connection: close");
client.println();

webPage = SD.open("home.htm");

if(webPage)
{
while(webPage.available())
{
client.write(webPage.read());
}
webPage.close();
}
break;

webPage2 = SD.open("student_login.htm");
if(webPage2)
{
while(webPage2.available())
{
client.write(webPage2.read());
}
webPage2.close();
}
break;
}
if(c == '\n')
{
currentLineIsBlank = true;
}
else if(c != '\r')
{
currentLineIsBlank = true;
}
}
}
delay(1);
client.stop();
}
if(client)
{
boolean currentLineIsBlank = true;
while(client.connected())
{
if(client.available())
{
char c = client.read();
if(c == '\n' && currentLineIsBlank)
{
client.println("HTTP/1.1 200 OK");
client.println("Content-Type: text/html");
client.println("Connection: close");
client.println();

webPage = SD.open("home.htm");

webPage2 = SD.open("student_login.htm");
if(webPage2)
{
while(webPage2.available())
{
client.write(webPage2.read());
}
webPage2.close();
}
break;
}
if(c == '\n')
{
currentLineIsBlank = true;
}
else if(c != '\r')
{
currentLineIsBlank = true;
}
}
}
delay(1);
client.stop();
}
}

you must return a file requested by browser, not all files to one request