May 082007
 

始自这篇文章《个人域名前不建议加 www》,而具体做法见这篇文章《简单去除域名前的 www》。

作者讲了这么长一篇,但对于我来说,真正的原因是因为我自己懒得打www。因为工作性质,经常troubleshooting很多域名解析状况,极度反感那些只对www.domain.tld做解析而domain.tld不做解析的恶劣站长,所以干脆自己也以身作则了,直接不让你们用www访问XD。

而核心代码其实就这么两句:

RewriteCond %{HTTP_HOST} ^www.dawnh.net$ [NC]
RewriteRule ^(.*)$ http://dawnh.net/$1 [R=301,L]

  5 Responses to “响应一下号召吧-去除访问域名的www”

  1. 感谢响应号召 :P

  2. 呵呵!
    不过好像都成一种习惯了
    刚刚用http://sina.com/上新浪
    不过显示
    ERROR
    The requested URL could not be retrieved

    ——————————————————————————–

    While trying to retrieve the URL: http://sina.com/

    The following error was encountered:

    Access Denied.
    Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.

    Your cache administrator is webmaster.

    ——————————————————————————–

    Generated Tue, 08 May 2007 11:09:44 GMT by xa02.sina.com.cn (squid/2.5.STABLE10)
    晕!

  3. sina.com is not sina.com.cn
    我一直用后面一个访问,sina.com天知道那是谁搞的东西。

  4. 呵呵 我都习惯www.sina.com了

  5. 改变大家的习惯不容易。

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>