"Offering free computer help, hints, and tips to the Internet populace." Now with over 3,820 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

Return to the Web Development - Misc. page.

Print this tip


Get the Newsletter

Thanks For Sharing!



Newest Tips:

Microsoft Word 2010
Make Sure Others Can See Your Fonts
Microsoft PowerPoint 2010
Animations or Video Displaying Poorly?
Google Chrome
[MODIFIED] Report a Malfunctioning Web Page, Crash, or Other Issue
Google Gmail
Show Unread Message Count as an Icon

Follow Us!

About MalekTips and the Author

The MalekTips website was created in 1998 by Andrew Malek of Envision Programming. The page's goal is to freely disperse computer-related tips, hints, and informative articles. Tips are organized to be easy to find, and are presented clearly, in easy-to-understand language. MalekTips also provides information and links to public-domain, open source, freeware, shareware, and commercial software available for download. < more >