<IfModule mod_rewrite.c> RewriteEngine On ErrorDocument 404 /index.php </IfModule>
<?xml version="1.0"?> <configuration> <system.webServer> <httpErrors> <remove statusCode="404" subStatusCode="-1" /> <error statusCode="404" path="/index.php" responseMode="ExecuteURL" /> </httpErrors> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> </configuration>
RewriteEngine On RewriteRule ^view/([0-9]+)/$ viewdetail.php?id=$1 RewriteRule ^view/([0-9]+)$ /view/$1/ [R]
<?php echo "id=".$_GET["id"]; ?>
<configuration> <system.webServer> </system.webServer> </configuration>
<configuration> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> <rewrite> <rules> <rule name="Imported Rule 1"> <match url="^view/([0-9]+)/$" ignoreCase="false" /> <action type="Rewrite" url="viewdetail.php?id={R:1}" appendQueryString="false" /> </rule> <rule name="Imported Rule 2"> <match url="^view/([0-9]+)$" ignoreCase="false" /> <action type="Redirect" redirectType="Found" url="/view/{R:1}/" /> </rule> </rules> </rewrite> </system.webServer> </configuration>