Solved

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

Posted on 2010-08-16
2
238 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
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBScript on Html 15 48
Insert Button on a table 16 38
Do alert on select 6 15
CSS Style Effect 2 12
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

821 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