Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Well, if you want to redirect an html page to another html page, then add this to the source code:
<body bgcolor="#ffffff" text="#000000" link="#8000ff" vlink="#808080" alink="#ff0080">
<p>You will be redirected to the new page automatically. </p>
<p>If you are not redirected to the new page within 5 seconds, then please <a href="http://www.google.com">click here</a>.</p>
<!-- Hide script from old browsers
// set timeout to redirect after 1 seconds
Obviously, change the "http://www.google.com" bit to link to your web page.
If you want people going to folder1 to go to folder2, then it doesn't make sense for folder1 to actually exist, does it? So to allow you to create a symbolic link called folder1, the existing folder called folder1 must be deleted or moved away.
Originally posted by jcspray If you want people going to folder1 to go to folder2, then it doesn't make sense for folder1 to actually exist, does it? So to allow you to create a symbolic link called folder1, the existing folder called folder1 must be deleted or moved away.
mv folder1 folder1.bak
ln -s folder2 folder1
no, you see, I have to temporarily make this redirection...
after a while I will un-redirect it
The best way to do that is to configure Apache (or whatever your server is) to do the redirection.
The next best solution is to do this with PHP (for example), hence on the server side, by creating a folder1/index.php file, whose content is something like:
Redirecting means telling the browser he should go to some other place than the one he is currently looking at. Key words here are "telling the browser".
By creating symbolic links, you will never be able to tell the browser anything. It's just fundamentally impossible. All you can achieve by using symbolic links is telling the server (keyword: "server") that it should feed to the browser a file that is not in the current directory, but somewhere else. The browser, however, will never notice this. As far as it knows, the file it is getting is located at the 'old' location.
So in summary, these are fundamentally different things. You must decide which one best suits your needs.