SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    Learning...
    Join Date
    Jan 2003
    Posts
    781
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question setting up a web site on local machine for Development

    This might not be the right place for this thread, please advice and i will move it.

    IIS: 5.1
    OS: Microsoft XP Professional, Version 2002, Service Pack 2
    Development Environment: FrontPage

    I have placed a folder in local disk D as DevSite. the structure is

    DevSite
    1. admin -- folder
    2. content -- folder
    3. images -- folder
    4. resources -- folder
    5. index.asp
    now the images folder has sub folders for logos, generalimages, partnerships etc

    i can run the site as http://localhost/DevSite/ and my index page shows up. Now the problem is that if i need to referance the images, or include files in the content folder or admin folder, i have to do it as

    <!-- #include virtual="/DevSite/resources/header.asp" -->
    <!-- #include virtual="/DevSite/resources/footer.asp" -->

    and for the images as

    <img border="0" src="/DevSite/images/logo/logo_big.jpg">

    for my locaal dev this is fine, this /devsite will pose a problem once i post the files to production. How can i remove the /DevSite from the path and in the style sheet or any pages just start the image paths as /images. For this when i open the site on my machine as http://localhost/ it should bring up my index page.
    The beauty of life is not dependent on how happy you are,
    but on how happy others can be because of you...

  2. #2
    Learning...
    Join Date
    Jan 2003
    Posts
    781
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have followed this site
    http://www.plus2net.com/asp-tutorial/iis-localsite.php

    and can now run the page as http://localhost/.
    The beauty of life is not dependent on how happy you are,
    but on how happy others can be because of you...

  3. #3
    #titanic {float:none} silver trophy
    molona's Avatar
    Join Date
    Feb 2005
    Location
    from Madrid to Heaven
    Posts
    8,271
    Mentioned
    252 Post(s)
    Tagged
    1 Thread(s)
    well done!

  4. #4
    The Mind's I ® silver trophy Dark Tranquility's Avatar
    Join Date
    Sep 2003
    Location
    KSA - UAE
    Posts
    9,457
    Mentioned
    8 Post(s)
    Tagged
    1 Thread(s)
    one thing drop Frontpage!!
    You are eving calling that "Development Environment"??

  5. #5
    Learning...
    Join Date
    Jan 2003
    Posts
    781
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can't do much about FrontPage, i have to use it for this as the client himsellf is using it. I still think it is reasonable.
    The beauty of life is not dependent on how happy you are,
    but on how happy others can be because of you...

  6. #6
    The Mind's I ® silver trophy Dark Tranquility's Avatar
    Join Date
    Sep 2003
    Location
    KSA - UAE
    Posts
    9,457
    Mentioned
    8 Post(s)
    Tagged
    1 Thread(s)
    I don't! there are plenty of very nice editors around! FP will mess with your code!!
    It is time to change!!
    just search the forums for opinions about FP!!
    here you can find a nice list of good editors with their prices etc..
    http://www.sitepoint.com/forums/showthread.php?t=346481


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •