tag:blogger.com,1999:blog-865923359735383241.post7807980685203376461..comments2023-10-29T07:27:09.012-06:00Comments on Ccna final exam - java, php, javascript, ios, cshap all in one: Translating an Apache .htaccess file to an IIS web.configUnknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-865923359735383241.post-90124095492606600622012-05-31T19:30:07.122-06:002012-05-31T19:30:07.122-06:00Please be aware that this will only work on IIS7 ...Please be aware that this will only work on IIS7 and not on IIS6. Also this requires FastCGI to be setup and the URL Rewriting module to be installed and enabled. These are things your hoster will be able to verify for you. If all of the above is true then the following file should do the trick ( you might need to tweak the paths but again I think your hoster will be able to do this for you if you supply them with this example file.<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><configuration><br /> <configSections><br /> <sectionGroup name="system.webServer"><br /> <sectionGroup name="rewrite"><br /> <section name="rewriteMaps" overrideModeDefault="Allow" /><br /> <section name="rules" overrideModeDefault="Allow" /><br /> </sectionGroup><br /> </sectionGroup><br /></configSections><br /><br /><system.webServer><br /> <!-- Mapping the .do extension to the PHP ISAPI module --><br /> <handlers><br /> <!-- the following line is very specific to your host<br /> please check the module name and the scriptProcessor <br /> path with the system administrator! basically this is <br /> the same as<br /> http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-70/#EnableFastCGI<br /> only in .config format. --><br /> <add name="MaskDoAsPHP" path=".do" verb="GET,HEAD,POST,DEBUG" modules="FastCgiModule" scriptProcessor="C:\PHP\php-cgi.exe" /><br /> </handlers><br /><br /> <!-- Setting the default handler. --><br /> <defaultDocument><br /> <files><br /> <clear /><br /> <add value="home.do" /><br /> </files><br /> </defaultDocument><br /><br /> <rewrite><br /> <rules><br /> <rule name="Removing do extension" stopProcessing="true"><br /> <match url="^(.*)$" ignoreCase="false" /><br /> <conditions><br /> <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /><br /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /><br /> </conditions><br /> <action type="Rewrite" url="{R1}.do" appendQueryString="true" /><br /> </rule><br /> </rules><br /> </rewrite><br /></system.webServer>Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-8017026633469405762012-05-31T19:30:06.336-06:002012-05-31T19:30:06.336-06:00This could be seen as cheating, but we use ISAPI_R...This could be seen as cheating, but we use ISAPI_Rewrite, which lets you just use the .htaccess file for IIS. If you can get them to put it on the server, you won't need to translate anything.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-1234196384340672722012-05-31T19:30:05.095-06:002012-05-31T19:30:05.095-06:00This article worth a look:
Translating .htaccess C...This article worth a look:<br />Translating .htaccess Content to IIS web.configUserhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.com