简体   繁体   中英

Rewriting url rewrite rule tio IIS 7

I hope you can help me guys, here is my problem, i need to configure this URL Rewrite .httacces rule to a web.config file, because the site will run on IIS 7 and is developed in php

RewriteBase /

RewriteRule    ^web/contacto.php$    contacto/  [R,L]
RewriteRule    ^web/marcas.php$    marcas/  [R,L]
RewriteRule    ^web/categoria.php$ busqueda/resultados/ [R,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule .* index.php [L]

Thanks in advance!

IIS管理器允许您导入htaccess规则并为您转换它们。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM