English 中文(简体)
长期从httphandler转播网页,使用p.net 4.0 routing特征
原标题:permanently redirect pages from httphandler using asp.net 4.0 routing feature

我的情况是,我网站前只有几页重要页面,但是这些网页已经改用,而且这些旧的网页也用了眼光,这些网页的长度也用在角角搜索上,用户点击这些链接,进入我的网站,但看上去没有发现错误。

i 想利用4. 路边特征处理这种情况。 因此,请告诉我,最佳办法是,使用户改用新网页,旧网页应永久改用301条身份代码从行程代码上。 因此,请让我提出处理这种情况的最佳建议和小型样本。 感谢

问题回答

你应该能够把这些网页上加到您的日程上,并将其放在你喜欢的地方。

See http://www.asp.net/mvc/tutorials/controllers-and-routing for a detailed overview of the MVC routing.

更好的办法是将这些网页上调301台头盔,并改用内容的新网页,这将告诉谷歌,其内容已经移动,更新其指数,而不会失去任何已建的外部链接。





相关问题
Rails: Proxy Pass?

I ve got a web-app that I want to migrate to Rails, which is currently just plain HTML with an Apache proxy to another server, running a custom database/webserver that serves the site s dynamic ...

MVC routing is not handling one of my directories

I m using ASP.NET MVC with IIS 7.0. I ve got 404 errors hooked up fine through my Application_Error override. In addition to "Controllers", "Models", "Helpers" etc. I have a directory called Files ...

Ruby on Rails conditional routing

I have a site listing many jobs, but I also want each account to be able to access its jobs in one place. Thus, I am using these routes: map.resources :jobs map.resource :account, :has_many => :...

Clean URL s using OpenCart s router class

How do you write clean URL s in OpenCart using their built in Router class? Here is my .htaccess file: RewriteEngine On RewriteRule ^(system) - [F,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{...

subdomain routing to multiple controller issue

I have a site: www.mydomain.com where we have administrative controls hidden away from normal customer view. I would like to only access the administrative features under a subdomain such as admin....

Can controller names in RESTful routes be optional?

With a standard map.resource routing mechanics and several nested resources the resultant routes are unnecessarily long. Consider the following route: site.org/users/pavelshved/blogs/blogging-horror/...

Help with rails routes

Im having a little trouble setting up routes. I have a users controller/model/views set up restfully so users is set up to be a resource in my routes. I want to change that to be usuarios ...

热门标签