Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now