News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Timir Shah's Blog:
URL Rewriting with PHP and IIS 7
April 01, 2010 @ 09:51:14

On his PHP Genious blog Timir Shah has written up a new post looking at how you can configure URL rewriting (much like mod_rewrite) in an IIS7 web server running PHP applications.

Few days ago, I faced a URL rewriting problem on windows server. After checking the server configuration, I found that there is an II7 installed. After long research about this, I found that II7 is not support .HTACCESS. If youwant to male your site SEO URL friendly, then you have to use web.config file for URL rewriting instead of .HTACCESS. Now the question is how to make web.config file from .HTACCESS?

He compares the two formats, showing how different directives from the .htaccess file can be translated over. He starts with an example of default documents on either side - the .htaccess defining several "php_value" settings and the web.config setting some default routing and rewrite rules. He shows how to set up a few things on each side - error page redirects and setting up some custom URL rewrite rules for both sides (with examples).

0 comments voice your opinion now!
url rewrite htaccess webconfig iis7 webserver


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: Asset Access Restriction Methods Block Unwanted Visitors

PHPClasses.org: 10 steps to migrate Web site servers with the least of problems

Alison Gianotto: Check User-Submitted URLs for Malware and Phishing in Your Application

Jonathan Snook's Blog: View Caching in CakePHP 1.1.8

NETTUTS.com: Sanitize and Validate Data with PHP Filters


Community Events

Don't see your event here?
Let us know!


performance conference voicesoftheelephpant community laravel install symfony2 extension framework version opinion interview library series api php7 example podcast release introduction

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework