重定向http://www.domain.com到http://domain.com
来源:互联网 发布:ptgui pro mac 编辑:程序博客网 时间:2024/05/16 05:25
Make your site Class B
Sep 3, 2003
Class B means that all of the traffic to http://www.yourdomain.com is politely and silently redirected to http://yourdomain.com.This is currently the preferred no-www classification as it does notinconvenience your users, but it does assert the deprecated nature ofthe www subdomain.
The process of making your domain a Class B is quite simple. All you need to do is create or modify a file called .htaccess located in the root directory of your site and add the following lines, changing the red text to match your domain.
RewriteEngine On在站点http://www.domain.com根目录下建一个.htaccess文件,内容如上。
RewriteCond %{HTTP_HOST} ^www/.domain/.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
- 重定向http://www.domain.com到http://domain.com
- 食物相克小知识http://www.best4c.com/loginForLink.do?domain=www.csdn.net
- response.sendRedirect("http://www.baidu.com");重定向
- 已迁移到http://www.coffin5257.com
- http://www.martinfowler.com/
- http://www.free8.com/
- http://www.serverwatch.com/
- http://www.javadict.com/
- http://www.vckbase.com/
- http://www.mycconline.com
- http://www.howstuffworks.com/
- http://www.perforce.com/
- http://www.xmugd.com
- http://www.programsalon.com
- http://www.caixiong.com/
- http://www.koders.com/
- http://www.torrentz.com
- http://www.astalavista.com/
- BLOG开通试运行情况
- 房屋租赁合同范本(转)
- 杂碎
- 4G EMAIL (15Mtak)
- eclipse-plugin 的关于支持ear包的思考
- 重定向http://www.domain.com到http://domain.com
- jdt中的ast工具
- 这一年我所学到的东西(1)
- SqlServer2000中用户自定义数据类型的使用
- String 的共享行和不可变性的理解.
- 一个浙江人的22条经典经商法则(很值得借鉴)
- Google PR值查询
- apollon的调研
- MS-SQL 问题荟萃