Category Archives: 乱码记忆体

Apache 的 Rewrite

今天由于工作需要,要做一个重写URL。不过我们网管却告知无法操作,于是自己Gooogle到关于Apache的Rewrite Module。   大致设计方法如下: · 编辑 Apache 配置文件 httpd.conf · 去掉 LoadModule rewrite_module modules/mod_rewrite.so 的屏蔽 · 加入如下代码(以本次需求为例):   RewriteEngine  On  RewriteRule  ^/bbs/(.*)  /xm/  [R,L] · 重启 Apache   * 相关阅读:   Apache的ReWrite的应用   Apache 重写规则的常见应用   如何设置Apache把访问该地址的请求转到另外一个站点?

Posted in 乱码记忆体 | 4 Comments

平常极少用到<noscript> tag,今天完成My Bookmark, 2006时因为导入脚本,所以就撞上了。生疏的结果就是提交W3C Markup Validation Services时,报错……   提示缺少包容Tag。于是加上<span>标签,大概如下: <noscript><span>Your browser has JavaScript turned off. </span></noscript>   提交还是报错,这回有比较明朗的建议: document type does not allow element "span" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "pre", … Continue reading

Posted in 乱码记忆体 | 6 Comments