Php 如何将.htaccess重写规则更改为web.config
我不知道web.config,我已经在.htacess中编写了一些重写规则,但是如何在web.config中转换这些规则。我发现了IIS,但我什么都不懂Php 如何将.htaccess重写规则更改为web.config,php,.htaccess,web-config,windows-server,Php,.htaccess,Web Config,Windows Server,我不知道web.config,我已经在.htacess中编写了一些重写规则,但是如何在web.config中转换这些规则。我发现了IIS,但我什么都不懂 RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*)$ $1.php [L] RewriteR
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php [L]
RewriteRule ^payment/([^/]*)$ /vhil/checkout?id=$1 [L]
RewriteRule ^product/([^/]*)$ /vhil/product-desc?p=$1 [L]
#admin rules
RewriteRule ^admin/edit/product/([^/]*)$ /vhil/admin/editProduct?id=$1 [L]
RewriteRule ^admin/edit/banner/([^/]*)$ /vhil/admin/editBanner?id=$1 [L]