Gossamer Forum
Home : General : Internet Technologies :

Linking folder...

Quote Reply
Linking folder...
Hi. I'm trying to work out how to do the following;

Let users goto http://www.mysite.com/folder/, but instead be redirected to http://www.mysited.com/link/to/sub/folder/

I thought I could get away with linking a folder, via;

ln -s folder link/to/sub/folder

But that didnt work :(

Is there anything I can do in .htaccess, or similar to achive this?

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Linking folder... In reply to
You can setup Aliases in your httpd.conf file. I'm not sure if you can do this in your .htaccess files, however. Set something like:

Alias /folder/ "/home/real/location/of/folder/"

Remember that the trailing slash will be required. If the user goes to /folder then the symlink will not work.

- wil
Quote Reply
Re: [Andy] Linking folder... In reply to
Hello,

You could put a index page in the folder you want redirected using the meta tag:

<meta http-equiv="refresh" content="0;URL=http://www.mysite.com/link/to/sub/folder">

I have done this and it seems to work fine just leave the page blank

If you need to more detail about this email me: chrishuey@hueyhost.com
Chris Huey
Car-pons.com
http://www.car-pons.com
Quote Reply
Re: [huey] Linking folder... In reply to
Yeah, but I need everything within that folder to be redirected accordingly, not just the index file.

Thanks anyway Smile

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Linking folder... In reply to
http://httpd.apache.org/...as.html#redirectperm

Scroll upwards for more useful ideas too.

Last edited by:

Paul: Sep 16, 2002, 8:24 AM
Quote Reply
Re: [Paul] Linking folder... In reply to
I think Andy can also put

FollowSymLinks

into his options of httpd.conf

http://hotwired.lycos.com/...age3.html?tw=backend

It's a security issue of course, which is why it's often not set.