Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2010-08-16
2
Medium Priority
?
242 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 2000 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

Technology Partners: 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

Find out what you should include to make the best professional email signature for your organization.
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 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…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
Suggested Courses

824 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