【发布时间】:2013-04-22 21:38:03
【问题描述】:
我想重定向我域下的所有网址
domain.com/urls、www.domain.com/profile/user1.html 等到 subdomain.domain.com/urls 和 subdomain.domain.com/profile/user1.html 等
但我不想将 domain.com 和 www.domain.com 重定向到 subdomain.domain.com
是否可以通过 htaccess 实现?
编辑:我只想重定向内部页面和文件。但保持主要 domain.com 不变。
更多示例
domain.com/page1.html to subdomain.domain.com/page1.html
www.domain.com/members/admin.html to subdomain.domain.com/members/admin.html
www.domain.com to www.domain.com (no redirection here)
【问题讨论】:
标签: .htaccess redirect dns subdomain