Intelligencia URLRewriter为不存在或不aspx页面 [英] Intelligencia URLRewriter for non existent or non aspx pages
问题描述
我想重定向所有不存在的页面到不同的域,因为我的博客被移动到不同的域。
I am trying to redirect all non existent pages to a different domain, as my blog was moved to a different domain.
所以 www.mydomain.com/blog/asdf 应重定向到的 blog.mydomain.com/blog/asdf
使用Intelligencia URLRewriter模块我也可以把博客/,但如果我做博客/件事情我得到一个404。
Using Intelligencia URLRewriter module I can redirect blog/ but if I do blog/something I get a 404.
即使没有像这样的正则表达式一个简单的规则,它没有任何东西的博客文件夹下工作
Even with a simple rule without regex like this one, it doesn't work for anything under the blog folder
<rewrite url="~/blog/^" to="http://blog.softwaresynergy.com/blog/" />
我也试过这迫使所有的请求转到处理程序
I also tried this to force all requests to go to the handler
<modules runAllManagedModulesForAllRequests="true">
如何收拾下博客的一切/并重定向到其他域任何想法?
Any ideas on how to pick up everything under blog/ and redirect to the other domain?
推荐答案
我也以不同的方式的变化。离开原始站点PHP和使用PHP的重写工作正常做了重定向。
I did the change in a different way. Left the original site as php and did the redirect using php rewrite which works fine.
在new.mydomain我做的ASPX网站的域
In the domain new.mydomain I did the aspx site
不理想,但现在的工作。
Not ideal, but worked for now.
这篇关于Intelligencia URLRewriter为不存在或不aspx页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!