Php 我必须将url?id=更改为/通过web.config
对于站点中的每个页面,我必须通过web.config将url从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
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]