htaccess重定向
问题描述:
即时尝试重定向一个子目录和它下面的一切到另一个网址。例如,htaccess重定向
http://example.com/example/应该去http://cname.example.com/example/。我不知道如何在Apache中做到这一点。我知道如何从一个子目录重写到根,但没有别的。有人知道怎么做吗?
答
重定向301 /例如/ http://cname.example.com/example/
[编辑:添加链接] http://www.webweaver.nu/html-tips/web-redirection.shtml