Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.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 我必须将url?id=更改为/通过web.config_Php_.htaccess - Fatal编程技术网

Php 我必须将url?id=更改为/通过web.config

Php 我必须将url?id=更改为/通过web.config,php,.htaccess,Php,.htaccess,对于站点中的每个页面,我必须通过web.config将url从all products?id=Mw==更改为all products/Mw== 请让我知道。我必须更改url?id=to/through web.config文件请帮助我胜过您主要的所有产品?id=123 to all products/123,如果是,我更新了您已将其标记为.htaccess,但在您的问题中提及web.config。后者是什么?您使用的是什么操作系统? Options -MultiViews RewriteEngi

对于站点中的每个页面,我必须通过web.config将url从
all products?id=Mw==
更改为
all products/Mw==


请让我知道。

我必须更改url?id=to/through web.config文件请帮助我胜过您主要的所有产品?id=123 to all products/123,如果是,我更新了您已将其标记为
.htaccess
,但在您的问题中提及
web.config
。后者是什么?您使用的是什么操作系统?
Options -MultiViews
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

RewriteRule ^all\-products/([^/]+)$ /all\-products?id=$1 [L]