By replacing IIS with Apache. IIS doesn't natively use .htaccess files.
For this script, look at ISAPIRewrite, don't know how it works in IIS 7 but it would do these in IIS 6 fine. Or configure your own rewrite module.
See: http://www.iis.net/downloads/default.aspx?tabid=34&g=6&i=1262
http://thomas.bindzus.me/tag/iis-7-import-htaccess-files/
No CSS is applied, the problem seems to be that index.php is not removed properly, this is caused by missing rewrite rules which should be configured for the web site through IIS Manager, so open the URL Rewrite tool by double-clicking on the icon:
http://www.microsoft.com/en-in/download/details.aspx?id=7435
http://www.tc33.org/web-development/php/installing-phps-intl-extension-on-windows-with-pecl/
1. Insert in php.ini: extension=php_intl.dll
2. Insert in php.ini:
[intl]
intl.default_locale = en_utf8
intl.error_level = E_WARNING
Below dll should be prsent in php folder
icudt49.dll
icuin49.dll
icuio49.dll
icule49.dll
iculx49.dll
icutu49.dll
icuuc49.dll
http://blog.richardknop.com/2011/09/making-zend-framework-run-under-iis/
http://zend-framework-community.634137.n4.nabble.com/Zend-Server-IIS7-5-Zend-Framework-HTACCESS-td660271.html
add web.config file under public_html folder with below contain
Features
- Rules-based URL rewriting engine
- Rules-based response rewriting engine
- Support for custom .NET rewrite providers
- Regular expression pattern matching
- Wildcard pattern matching
- Global and distributed rewrite rules
- Rewriting within the content of specific HTML tags
- Pre-conditions for outbound rules
- Access to server variables and HTTP headers
- Rewriting of server variables and HTTP request headers
- Rewriting of HTTP response headers
- Allow list for server variables
- HtmlEncode function
- Built-in rule templates
- Reverse proxy rule template
- Rule templates for Search Engine Optimization
- Various rule actions including redirect and request abort
- Tracking capture groups across rule conditions
- Logging of rewritten URLs
- Updated user interface in IIS Manager
- Integrated user interface for managing rewrite rules and rewrite maps
- Integrated user interface for importing of Apache mod_rewrite rules
- Integrated user interface for testing regular expression and wildcard patterns
- Support for IIS kernel-mode and user-mode output caching
- Lowercase conversion function
- Rewrite maps to generate the substitution URL during rewriting
- Failed Request Tracing support