Tuesday, February 28, 2012

How to set a default page for your website

When You type http://localhost/ in your browser. Browser send request to IIS and start searching for the default page of website in C:\\inetpub\wwwroot directory
inetpub wwwroot files
 and execute the default page welcome.htm [default page in IIS7]

website default page

But if you want to change this default page for localhost, do the following
Step-1:Open IIS(Control Panel-->Administrative Tools-->IIS Manager) 
Step-2: Configure IIS  by setting physical path to C:\inetpub\wwwroot
IIS configuration for website

Step-3: Open a notepad file
Step-4: Copy and paste the following page 

<html>

  <body>

     <h1>Now this is the default page for my website</h1>

      <div neue",helvetica,arial,"segoe="" segoe="" style="font: 100 16px;" ui","helvetica="" wp",sans-serif;"="">

<span style="margine-left:300px;font-size: small;width:600px;"><span style="font-family: Georgia,&quot;Times New Roman&quot;,serif;"><span style="font-size: x-large;">"</span><i>Code Imagine is technology-focused news publication and developer  supporting website founded in 2011 by Pavan Bhardwaj that focused on  it's mission to connect with </i></span><i><span style="font-family: Georgia,&quot;Times New Roman&quot;,serif;">all techie audience for solve their issues related to  Design, Development and Deployment of applications and cover up all the  tech </span><span style="font-family: Georgia,&quot;Times New Roman&quot;,serif;">world via the unique, perfect and optimum solution at modern platform</span></i></span>

<div style="text-align: justify;">

<span style="font-size: small;"><span style="font-family: Georgia,&quot;Times New Roman&quot;,serif;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-size: x-large;">"</span></span></span><span style="font-size: x-large;"><b><span style="color: #cc0000; font-family: Georgia,'Times New Roman',serif;"><span style="font-size: x-large;"><span style="font-family: Georgia,&quot;Times New Roman&quot;,serif;"> </span></span></span></b></span></div>

   </body>

</html>

Step-5: Save the file as index.html
Step-6: Add index.html to C:\\inetpub\wwwroot folder.

Step-7: Now browse  http://localhost/
How to set index page for website
Yeah!!!!!!!!
thats it You achieve your goal

0 comments:

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Powered by Code Imagine