我在此子域重定向中做错了什么?
我需要的是如下: 访问 201101.donateaday.net 的人应发送至 http://donateaday.net/2011 /01/bla-kors-norge/
我尝试过: 选项 +FollowSymLinks
RewriteEngine 开启
RewriteCond %{HTTP_HOST} ^201101.donateaday.net/
RewriteRule ^(.*)$ http://donateaday.net/2011/01/bla -kors-norge/ [r=301,l]
但是,这似乎不起作用。我做错了什么?
翻转
What I need is as follows:
People visiting 201101.donateaday.net should be sent to http://donateaday.net/2011/01/bla-kors-norge/
I tried:Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^201101.donateaday.net/
RewriteRule ^(.*)$ http://donateaday.net/2011/01/bla-kors-norge/ [r=301,l]
However, this does not seem to work. What am I doing wrong?
Evert
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的 RewriteCond 似乎有一些字符太多。试试这个:
点被转义,以便它们匹配文字点,而不是任何字符。
It seems your RewriteCond has some characters too many. Try this instead:
The dots are escaped so that they match literal dots, instead of any character.