Home IIS.NET Forums Partner and Community Forums PHP Community how to convert this .htaccess to web.config
Last post Jul 31, 2015 03:05 AM by Bharath A.G
1 Post
Jul 15, 2015 11:47 AM|ketum24|LINK
RewriteEngine On
#Options -MultiViews #Options All -Indexes
#ErrorDocument 400 ./index.html #ErrorDocument 403 ./index.html #ErrorDocument 404 ./index.html #ErrorDocument 500 ./index.html
#Redirect /notice notice.php RewriteRule ^notice\.htm notice.php [L] RewriteRule ^home\.html index.php [L] RewriteRule ^(.*)\.asp index.php [L] RewriteRule ^index\.html index.php [L] RewriteRule ^(.*)\.asp $1.php [L] RewriteRule ^sig-(.*)-(.*)-(.*)\.sig sig.php?n($1)t($2)f($3) [L] RewriteRule ^(.*)\.html index.php?write=$1 [L]
323 Posts
Jul 31, 2015 03:05 AM|Bharath A.G|LINK
Hi, Please find the equivalent web.config rule below.
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="Imported Rule 1" stopProcessing="true"> <match url="^notice\.htm" ignoreCase="false" /> <action type="Rewrite" url="notice.php" /> </rule> <rule name="Imported Rule 2" stopProcessing="true"> <match url="^home\.html" ignoreCase="false" /> <action type="Rewrite" url="index.php" /> </rule> <rule name="Imported Rule 3" stopProcessing="true"> <match url="^(.*)\.asp" ignoreCase="false" /> <action type="Rewrite" url="index.php" /> </rule> <rule name="Imported Rule 4" stopProcessing="true"> <match url="^index\.html" ignoreCase="false" /> <action type="Rewrite" url="index.php" /> </rule> <rule name="Imported Rule 5" stopProcessing="true"> <match url="^(.*)\.asp" ignoreCase="false" /> <action type="Rewrite" url="{R:1}.php" /> </rule> <rule name="Imported Rule 6" stopProcessing="true"> <match url="^sig-(.*)-(.*)-(.*)\.sig" ignoreCase="false" /> <action type="Rewrite" url="sig.php?n({R:1})t({R:2})f({R:3})" appendQueryString="false" /> </rule> <rule name="Imported Rule 7" stopProcessing="true"> <match url="^(.*)\.html" ignoreCase="false" /> <action type="Rewrite" url="index.php?write={R:1}" appendQueryString="false" /> </rule> </rules> </rewrite> </system.webServer> </configuration>
Mark as answer if this helped you
1 Post
how to convert this .htaccess to web.config
Jul 15, 2015 11:47 AM|ketum24|LINK
RewriteEngine On
<div class="text_exposed_show">#Options -MultiViews
#Options All -Indexes
#ErrorDocument 400 ./index.html
#ErrorDocument 403 ./index.html
#ErrorDocument 404 ./index.html
#ErrorDocument 500 ./index.html
#Redirect /notice notice.php
</div>RewriteRule ^notice\.htm notice.php [L]
RewriteRule ^home\.html index.php [L]
RewriteRule ^(.*)\.asp index.php [L]
RewriteRule ^index\.html index.php [L]
RewriteRule ^(.*)\.asp $1.php [L]
RewriteRule ^sig-(.*)-(.*)-(.*)\.sig sig.php?n($1)t($2)f($3) [L]
RewriteRule ^(.*)\.html index.php?write=$1 [L]
323 Posts
Re: how to convert this .htaccess to web.config
Jul 31, 2015 03:05 AM|Bharath A.G|LINK
Hi,
Please find the equivalent web.config rule below.
Mark as answer if this helped you