Finally Microsoft has released URL Rewrite Module for IIS 7.0 CTP1. Many hosting providers were asking about this.
Now you can move a php website hosted with Apache to IIS7 and manage to get url rewrite rules to work in minutes.
Download from http://www.iis.net/downloads/default.aspx?tabid=34&g=6&i=1691
Forum at http://forums.iis.net/1152.aspx
Documentation at http://learn.iis.net/page.aspx/460/using-url-rewrite-module/
I'm sure you guys know about http compression settings from IIS 6 can seriously improove your web site load speed but ever wondered how to enable http compression for .aspx, .asmx, .php files?
Well wonder no more.
To add one or more file types to the server-wide static compression configuration
|
1. |
From the Start menu, click Run. |
|
2. |
In the Open box, type cmd, and click OK. |
|
3. |
Type both of the following commands:
|
cscript adsutil.vbs SET W3SVC/Filters/Compression/Deflate/HcFileExtensions "htm html txt newext" where newext is a file type you want to compress (for example, Microsoft Word or Excel documents), then press ENTER. You can add multiple file types separated by spaces. |
|
cscript adsutil.vbs SET W3SVC/Filters/Compression/gzip/HcFileExtensions "htm html txt newext" where newext is a file type you want to compress, then press ENTER. You can add multiple file types separated by spaces. | |
Note
To remove one or more file types from the server-wide static compression configuration, repeat the previous two commands, leaving out the file type you want to remove.
To add one or more file types to the server-wide dynamic compression configuration
|
1. |
From the Start menu, click Run. |
|
2. |
In the Open box, type cmd, and click OK. |
|
3. |
Type both of the following commands:
|
cscript adsutil.vbs SET W3SVC/Filters/Compression/Deflate/HcScriptFileExtensions "asp dll exe newext" where newext is a file type you want to compress (for example, aspx, a commonly used ASP extension), then press ENTER. You can add multiple file types separated by spaces. |
|
cscript adsutil.vbs SET W3SVC/Filters/Compression/gzip/HcScriptFileExtensions "asp dll exe newext" where newext is a file type you want to compress, then press ENTER. You can add multiple file types separated by spaces. | |
Note
To remove one or more file types from the server-wide dynamic compression configuration, repeat the previous two commands, leaving out the file type you want to remove.
Related Information
For a detailed discussion of how HTTP compression works, how to test compression, and detailed compression configuration options, see Using HTTP Compression for Faster Downloads.
Finally to test your configuration use this tool:
http://www.port80software.com/tools/compresscheck.asp
Ever wanted to know more about securing your php web sites? The information and tools from PHPSecInfo is the perfect place to start.
PhpSecInfo provides an equivalent to the phpinfo() function that reports security information about the PHP environment, and offers suggestions for improvement. It is not a replacement for secure development techniques, and does not do any kind of code or app auditing, but can be a useful tool in a multilayered security approach.