Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/289.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何将.htaccess重写规则更改为web.config_Php_.htaccess_Web Config_Windows Server - Fatal编程技术网

Php 如何将.htaccess重写规则更改为web.config

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

我不知道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] 

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]