# How to use "%relativeDocRoot%" in RapidWeaver 7?

**URL:** <https://forums.realmacsoftware.com/t/how-to-use-relativedocroot-in-rapidweaver-7/8768>\
**Category:** RapidWeaver Classic\
**Created:** [July 27, 2016, 8:47am UTC](https://forums.realmacsoftware.com/t/how-to-use-relativedocroot-in-rapidweaver-7/8768 "2016-07-27T08:47:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RapidBase](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/rapidbase/32/24626_2.png) [@RapidBase](https://forums.realmacsoftware.com/u/RapidBase)\
**Post date:** [July 27, 2016, 8:47am UTC](https://forums.realmacsoftware.com/t/how-to-use-relativedocroot-in-rapidweaver-7/8768/1 "2016-07-27T08:47:07Z")

</div>

For a site I’m working on I have to define a lot of manual links. But since the site will be place on another server until it’s ready I don’t want to use the full URL for the links ([http://www.mydomainname.com/clientsite](http://www.mydomainname.com/clientsite)) but a variable definition for the path, so that I would not have to change each and every link again when moving the site to it’s final destination. I thought I can do this with Vita for example, but somehow it doesn’t work (the text “relativeDocRoot” is still inside the path as text). Any hints for me how to do this?

---

<div class="post-metadata">

**Author:** ![instacks](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/instacks/32/23339_2.png) [@instacks](https://forums.realmacsoftware.com/u/instacks)\
**Post date:** [July 27, 2016, 8:54am UTC](https://forums.realmacsoftware.com/t/how-to-use-relativedocroot-in-rapidweaver-7/8768/2 "2016-07-27T08:54:02Z")

</div>

relativeDocRoot is the URL to your current server. What you want to archive will not work that way.

---

<div class="post-metadata">

**Author:** ![RapidBase](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/rapidbase/32/24626_2.png) [@RapidBase](https://forums.realmacsoftware.com/u/RapidBase)\
**Post date:** [July 27, 2016, 9:31am UTC](https://forums.realmacsoftware.com/t/how-to-use-relativedocroot-in-rapidweaver-7/8768/3 "2016-07-27T09:31:55Z")

</div>

Ah, ok. Thanks. But isn’t there any other variable to work with a relative path somehow?

---

<div class="post-metadata">

**Author:** ![webdeer](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/webdeer/32/5299_2.png) [@webdeer](https://forums.realmacsoftware.com/u/webdeer)\
**Post date:** [July 27, 2016, 9:43am UTC](https://forums.realmacsoftware.com/t/how-to-use-relativedocroot-in-rapidweaver-7/8768/4 "2016-07-27T09:43:43Z")

</div>

Wouldn’t relative paths such as …\ and .\ work in this case? So the DocRoot is the site URL set in RW settings.

---

<div class="post-metadata">

**Author:** ![RapidBase](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/rapidbase/32/24626_2.png) [@RapidBase](https://forums.realmacsoftware.com/u/RapidBase)\
**Post date:** [July 27, 2016, 10:05am UTC](https://forums.realmacsoftware.com/t/how-to-use-relativedocroot-in-rapidweaver-7/8768/5 "2016-07-27T10:05:48Z")

</div>

Do you mean “…/” and “./” or really “…” and “.”? Hm, should work, will have to try this.  
But in my special case I just realized what a complete idiot I am 😉 I totally forgot about RapidWeavers link-dialogue, where I can simply link to another page of the site. Exactly what I needed. Aaarghh, how embarrassing…

---

<div class="post-metadata">

**Author:** ![webdeer](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/webdeer/32/5299_2.png) [@webdeer](https://forums.realmacsoftware.com/u/webdeer)\
**Post date:** [July 27, 2016, 10:15am UTC](https://forums.realmacsoftware.com/t/how-to-use-relativedocroot-in-rapidweaver-7/8768/6 "2016-07-27T10:15:34Z")

</div>

I mean one of the two 🙂 I am a complete idiot too. Sometimes you get distracted you don’t see the obvious.
