与IIS搜索引擎友好的URL [英] Search-Engine Friendly URLs with IIS

查看:136
本文介绍了与IIS搜索引擎友好的URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在建立一个搜索引擎友好的CMS。我知道,也许是最大的关键有和SEO的网站之一,是拥有搜索引擎友好的URL。因此,有这样一个链接:

I am working on building a search-engine friendly CMS. I know that perhaps one of the biggest keys to having and SEO site is to have search-engine friendly URLs. So having a link like this:

http://www.mysite.com/product/details/page1

将导致更好的排名超过一个像这样的:

will result in much better rankings than one like this:

http://www.mysite.com/index.php?pageID=37

我知道,像第一个创建URL,我有两个选择之一:

I know that to create URLs like the first one, I have one of two options:


  • 使用网页技术,在这种情况下PHP,创建一个目录结构

  • 杠杆IIS有这些SEO的URL被PHP正确处理

至于PHP的推移,我pretty舒服的事情。不过,我认为第一种选择将更加难以维持。

As far as the PHP goes, I'm pretty comfortable with anything. However, I think the first option would be more difficult to maintain.

我没有与IIS(我的经验是有限的,以Apache)的任何经验,但我需要使用IIS,此客户端,这我建立这个CMS,因为它们对IIS 6上运行PHP的服务器。可能有人告诉我写一个IIS 6等同.htaccess文件,这将:

I don't have any experience with IIS (my experience is limited to Apache), but I am required to use IIS for this client for which I am building this CMS, since they have a server running PHP on IIS 6. Could someone show me to write an IIS 6 equivalent of an .htaccess file, which will:


  • 默默直接SEO的URL处理器脚本

  • 如果请求的URL是在服务器一个实际的目录
  • 不是重定向
  • silently direct SEO URLs to a processor script
  • not redirect if the requested URL is an actual directory on the server

这个应用程序将部署在客户端的服务器上,我不会在任何点根访问它。

This application will be deployed on the client's server, and I will not have root access to it at any point.

难道还有比我想的方式更好的办法?

Is there a better way than the way I am trying it?

感谢您的时间。

推荐答案

有关IIS 6,我认为最好的办法是使用的 IIRF 。这是一个原生过滤器IIS,使使用大多是兼容的.htaccess语法配置URL重写。

For IIS 6 I think your best bet is to use IIRF. It's a native filter for IIS that enables configurable URL rewriting using a mostly-compatible .htaccess syntax.

这是一个与任何平台都兼容IIS可以服务(.NET,ASP,PHP,红宝石等),它是维护良好和记录。

It's compatible with any platform that IIS can serve (.NET, ASP, PHP, Ruby, etc), it's well-maintained and documented.

这篇关于与IIS搜索引擎友好的URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆