Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.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
将web.config重写规则转换为Apache格式_Apache_Web Config - Fatal编程技术网

将web.config重写规则转换为Apache格式

将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,

我想转换这个web.config

<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]