Author Topic: Redirection on web server  (Read 1299 times)

Redirection on web server
« on: 24 March, 2011, 08:09:05 pm »
I'm running a web server set up by someone else.

There is a redirect on a directory.

/fred is redirected to /directory/fred

When I use ftp, /fred appears as a directory, but when I try to go into /fred, the directory path becomes /directory/fred

When using http, the contents of directory/fred can be seen at /directory/fred or at /fred

The hosting company has a browser based file management system, and in the root of that, /directory can be seen, but there is no /fred directory. Instead there is a file called

fred.

which is only 15 characters long (the length of "/directory/fred") but I can't copy or download that file using the browser based management system. It just brings up an error.

The host has a domain system that allows redirection, but "fred" isn't in one of those redirects.

I want to be able to maintain these redirects, and I want to know if anyone can tell me what I should do to modify the redirects.
Quote from: Kim
Paging Diver300.  Diver300 to the GSM Trimphone, please...

Re: Redirection on web server
« Reply #1 on: 24 March, 2011, 08:10:55 pm »
Is it a symbolic link at the OS level rather than something in the web server ?

If its running on *nix using Apache then Apache doesn't always follow symlinks hence you not being able to do /fred through the web based file management system. It depends on ownership of the directory and settings in Apache.
I think you'll find it's a bit more complicated than that.

Kim

  • Timelord
    • Fediverse
Re: Redirection on web server
« Reply #2 on: 24 March, 2011, 08:12:58 pm »
The hosting company has a browser based file management system, and in the root of that, /directory can be seen, but there is no /fred directory. Instead there is a file called

fred.

which is only 15 characters long (the length of "/directory/fred") but I can't copy or download that file using the browser based management system. It just brings up an error.

That sounds like a symbolic link to me - a function of the underlying filesystem, rather than anything domain or webserver related.

Symbolic link - Wikipedia, the free encyclopedia

Re: Redirection on web server
« Reply #3 on: 25 March, 2011, 08:06:32 am »
Thanks to both of you for that.

With some scary command line Linux commands under SSH, I have found that I can manipulate the symbolic links.
Quote from: Kim
Paging Diver300.  Diver300 to the GSM Trimphone, please...

Re: Redirection on web server
« Reply #4 on: 25 March, 2011, 07:40:57 pm »
Thanks to both of you for that.

With some scary command line Linux commands under SSH, I have found that I can manipulate the symbolic links.

:-)
It's not scary, it's just old school. 

Re: Redirection on web server
« Reply #5 on: 25 March, 2011, 07:53:30 pm »
Symlinks are very useful beasties, but it can get irritating when things like Apache and Samba may or may not follow them, depending on some setting that you (or someone else) set several years ago, and then totally forgot about. :-\
Actually, it is rocket science.
 

Re: Redirection on web server
« Reply #6 on: 25 March, 2011, 11:38:06 pm »
Thanks to both of you for that.

With some scary command line Linux commands under SSH, I have found that I can manipulate the symbolic links.

:-)
It's not scary, it's just old school how it's done properly.

FTFY ;)

Note that it's only Windows that doesn't do symlinks or hard links (which is what Time Machine (and yACF) backups are made of)