computer help index
 
 
Search:
"Offering free computer help, hints, and tips to the Internet populace." Now with over 3,240 tips!

Web Development - Misc.

Never Delete a Webpage Revisited

In the tip "Never Delete a Webpage," I discussed why you should not completely remove a web address. In the tip, I stated that you need to create a referrer page where the old page used to go that pushes people back to a page of your choosing, keeping visitors away from 404 errors. If your web server is running on a UN*x machine, and you have shell access, there is a better way to create referrer pages.

The command "ln" creates a symbolic link from one file to another. This allows you to create a file "1.htm," and a link to that file called "home.htm." That way, when someone accesses "home.htm" they are brought to the file "1.htm."

Instead of creating referrer pages, create symbolic links. Use the parameter "-s" to the "ln" command to create what is called a soft link from one page to another. Don't worry too much about the technicalities; just know that this works.

For example, to create a link to the file "home.html" called "home.htm", enter in this command at the shell prompt:

ln -s home.htm home.html


 
Add: Del.icio.us | Digg | Furl | My Yahoo!
 
Discuss This Tip

Print This Tip

Get E-Mail When New Tips are Online

Return to the Web Development - Misc. page.

RSS Feeds - Subscribe!
 

You want the latest tech tips and tricks in your e-mail Inbox - FREE? Type your e-mail address below and click 'Subscribe'.
 



( sample / details ) ( opt-out instructions )
 


 Free Offer! - Subscribe to the MalekTips computer help list and be one of the first to get new computer tips, articles, and download links! ( privacy policy )  ( opt-out instructions )
This page and its contents are copyright
©1997 - 2008 Envision Programming. ( copyright/disclaimer )

Home | Free Computer Help Newsletter! | Windows | Web Development | DOS and Batch Files | Removing Spyware
Digital Camera and Photography | Computer and Internet | Software | Microsoft Word
Computer Articles | About | Contribute a Tip | Link To Us! | Computer and Technology Links
RSS Feeds |  Contact Us | Advertising | Privacy Policy | Computer Help Forums