W
Mar
09
Tuesday
What's new in StudioAMK.com!
-
Welcome Back !!!
-
New Structure...
S
tudioAMK.com has been restructured to have lesser sections. It has been narrowed down to as little as two sections, Blog, where all my articles go and, Creations, where all my original creations such as programs and files go... -
New Login Systems...
Did you know... You are already a registered member of StudioAMK.com, if you have a
account or an OpenID account. A wide options of authentication creates an easy way to use a single digital identity across the Internet. It doesn't matter, if you do not have such accounts. You can always register a new account at StudioAMK.com. -
More & More Features...

Social Bookmarkings 
Adjustable Font Size 
Tags Cloud 
Article to PDF 
Follow-up Notification 
Easy Print 
Advanced Search 
Email to Friend -
Download Font
| URL Rewriting in IIS |
|
|
|
Tags: IIRF | IIS | PHP | URL Rewrting
| Monday, 01 December 2008 19:30 | |
|
The first question is; what exactly is URL Rewriting…? Is that the case when you go to http://studioamk.com and you are brought to http://studioamk.com/blog? NO! This is URL Redirecting and not URL Rewriting! Let us start with an example.
The following URL contains a query string parameter (title) for getting a particular blog post. http://studioamk.com/blog/getpost.php?title=PageTitle This can be altered to make it more user and search engine friendly URL as follow. http://studioamk.com/blog/PageTitle In another word, when you go to http://studioamk.com/blog/HelloWorld, you will at the same page as you entered in address bar of your browser, but at the backend, the web server will work as http://studioamk.com/blog/index.php?title=HelloWorld and will bring contents from that page to you. This is called URL Rewriting and this can be done by the use of a rewrite engine, which is a software that modifies web URL's appearances. We will use Ionics Isapi Rewrite Filter (IIRF) to implement URL Rewriting feature in IIS, which is an ISAPI filter, similar in functionality to apache mod_rewrite, that dynamically alters a URL based on rules defined in the configuration file. It is an open-sourced software and we can download and use it for Free. Step-by-step Guide
RewriteRule ^/(.*)$ /rewrite_test.php?title=$1 [I,L]
$Page = $_GET["title"];
Thus, as you observed, defining RewriteRule is the key in URL Rewriting. Without knowing it, you can’t achieve anything. Therefore, please allocate some times to read through the Readme file that comes along with IIRF zip file. If you are already an expert in Regex, it will be just as easy as counting 1-2-3. Alright, that’s it for today and… Good Luck!
|
































Comments
——————————-
http://angelasancartier.net Quote
RSS feed for comments to this post.