Solved

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

708 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

16 Experts available now in Live!

Get 1:1 Help Now