简体   繁体   English

301从友好网址iis7重定向

[英]301 redirect from friendly url iis7

I have a site in joomla and IIS 7. Joomla and reformatted my urls amicably . 我在joomla和IIS 7中有一个站点。Joomla友好地重新格式化了URL。 I changed the name of a category so that old links page gives a 404 error . 我更改了类别的名称,以使旧的链接页面显示404错误。 What I need is to make a dynamic rule to change the word designating the former category in the url by the word now means the new category to keep access or link the old url. 我需要做一个动态规则来更改在URL中指定前一个类别的单词,现在该词表示新的类别以保持对旧URL的访问或链接。

Example: 例:

http://www.formacionalcala.es/cursos-a-distancia/ aux-enfermeria /1005/anatomofisiologia-patologias-basicas-detalles http://www.formacionalcala.es/cursos-a-distancia/ aux-enfermeria / 1005 / anatomofisiologia-patologias-basicas-detalles

  • > >

http://www.formacionalcala.es/cursos-a-distancia/ auxiliar-enfermeria /1005/anatomofisiologia-patologias-basicas-detalles. http://www.formacionalcala.es/cursos-a-distancia/ auxiliar-enfermeria / 1005 / anatomofisiologia-patologias-basicas-detalles。

Just that one word . 一句话。 I have tried several rules in the web.config but I have not succeeded. 我已经在web.config中尝试了一些规则,但是没有成功。

Thanks and sorry for my bad English . 谢谢你,我的英语不好。

You Know that Joomla! 你知道那个Joomla! was born on Lamp and 301 redirect are managed in .htaccess file (in the root). 出生在Lamp上,并且301重定向在.htaccess文件(位于根目录)中进行管理。 Here you can read a Microsoft guide on how to modify .htaccess on IIS7 then you can do, I think, one or more normal 301 redirect. 在这里,您可以阅读有关如何在IIS7上修改.htaccess的Microsoft指南,然后可以执行一个或多个常规301重定向。

Microsoft guide 微软指南

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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