Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


Top White Papers

More on LinuxToday


Getting Started with URL Rewriting with Apache

May 30, 2009, 22:01 (0 Talkback[s])
(Other stories by Sukrit Dhandhania)

"There are four parts to the rule configuration. You first invoke RewriteRule, which is the static syntax to create a rule. Then you enter the source URL, which is the address that will be typed by the user in her web browser. After this comes destination URL, which is the page the web server will actually activate. Last is the optional flags section, which is where you can define the nature of the URL forwarding. With this relatively simple combination of entries, you can weave some wonderful magic with your URLs.

"Let's begin by setting up a simple page forwarding. This is for a scenario where you have moved a webpage to a new location. Create a file home.html and enter the following line into it."

Complete Story

Related Stories: