Solved

Possible to use Site Root relative links for one part, and document relative links for another part?

Posted on 2010-08-16
2
240 Views
Last Modified: 2013-11-19
Hello,

Appreciate a little help with the attached ...

I have a site (1588 files in 274 folders) which I built using document relative links -

<!--#include file="scripts/removein.asp" -->
<img src="VarImages/logo.png">
<a href="news.asp">News</a>

etc....

Most of the files on the website are in password restricted directories, so here document relative links are fine.

However the publically available pages, need to be SEO URL rewritten (friendly) So I'm using an ISAPI rewrite tool.. however to acheive the desired result, I need for all links in these web pages to be Root specific.

Due to the large number of files, I ideally don't want to have to change all links in the website to root specific, as this will take ages, so I would rather just change the links in the files that need to be URL rewritten.

My question, is,.. is it possible to use both Root & Document relative links, for different areas of a website?

Please advise..

thank you
0
Comment
Question by:garethtnash
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
s8web earned 500 total points
ID: 33449094
Yes, as long as a base url isn't defined.

It will however be inconsistent and possibly confusing at times as you will eventually wind up with a link somewhere like ../../../../../../file.htm. Been there :)
0
 

Author Closing Comment

by:garethtnash
ID: 33453674
Thanks - think I probably need to brave it and work my way through this one now though rather than later!!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
Suggested Courses

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question