Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Test website with site relative links locallly in IIS7
Old 07-23-2008, 01:13 PM Test website with site relative links locallly in IIS7
Junior Talker

Posts: 4
Trades: 0
I have a website created .asp by using Dreamweaver that use relative links for includes files such as:<!--include file="--/--/lib/header.asp"--> and use site relative links for images, such as <img src=/pictures/square.gif">. I have all my website pages under a local site root folder (www) under c:\inetpub\wwwroot\www.

I have installed IIS7 in Vista, and when I tested it using a sample .asp file to display current time, it works fine (it displays dynamic content, current time, correctly). So, I think IIS7 is installed correctly. However, when I try to view a website page locally in IIS7 by entering page file path, such as http://localhost/www/introduction.asp , it doesn't display any pages with includes files and images with site root relative links are broken and not displayed. Also, links to the pages with includes files are broken.

How can I set up IIS7 correctly so that I can view the website (with includes files and site root relative paths) locally properly? Any help would be much appreciated.
webnew is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-23-2008, 04:46 PM Re: Test website with site relative links locallly in IIS7
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,528
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
IIS since ver5.1 has had parent paths (../../) disabled by default from install

For includes use virtual="/root_relative_path.ext" rather than document relative file="../path_to_file.ext"
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Test website with site relative links locallly in IIS7
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.12756 seconds with 12 queries