# \[htaccess\] Simple relative redirect

**URL:** https://forum.kirupa.com/t/htaccess-simple-relative-redirect/275210
**Category:** programming
**Created:** [November 11, 2008, 9:17am UTC](https://forum.kirupa.com/t/htaccess-simple-relative-redirect/275210 "2008-11-11T09:17:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Icy\_Penguin](https://avatars.discourse-cdn.com/v4/letter/i/f6c823/32.png) [@Icy\_Penguin](https://forum.kirupa.com/u/Icy_Penguin)
#### Post date: [November 11, 2008, 9:17am UTC](https://forum.kirupa.com/t/htaccess-simple-relative-redirect/275210/1 "2008-11-11T09:17:06Z")

</div>

I’ve installed Relay (the AJAX file/directory manager) on my local server on my laptop - and I just want to direct all of my folders inside my DocumentRoot (which is Users \> me \> Sites) to DocumentRoot/relay.

So, typing in [http://localhost/secretfolder/](http://localhost/secretfolder/) would direct me to [http://localhost/relay](http://localhost/relay).

However, I don’t want to use the Redirect command because I need an absolute path. RewriteEngine doesn’t work either with the relative URLs for scripts that Relay uses.

I just need a simple .htaccess command that will take me from one folder to a sibling folder - that simple. ☹

Thanks 🙂
