将web.config重写规则转换为Apache格式
我想转换这个web.config将web.config重写规则转换为Apache格式,apache,web-config,Apache,Web Config,我想转换这个web.config <rule name="cambiarPass" stopProcessing="true"> <match url="^cambiarPass/" /> <action type="Rewrite" url="modulos/cambiarPass/controller.php" appendQueryString="false" /> </rule> 到.htaccess。请帮忙 请记住,我不使用IIS,
<rule name="cambiarPass" stopProcessing="true">
<match url="^cambiarPass/" />
<action type="Rewrite" url="modulos/cambiarPass/controller.php" appendQueryString="false" />
</rule>
到.htaccess。请帮忙 请记住,我不使用IIS,但提供的代码在如何将其转换为Apache重写规则方面似乎是不言自明的
行设置为仅对以cambiarPass/
开头的URL(路径)应用URL重写。
<action type="Rewrite" url="modulos/cambiarPass/controller.php" appendQueryString="false" />
RewriteEngine on
RewriteRule ^cambiarPass/ modulos/cambiarPass/controller.php [L]