2011年8月

既然网上找不到,只好自己自力更生了!
rewrite ^/index.html$ /index.php last; rewrite ^/category$ /index.php last; rewrite ^/feed-c([0-9]+).xml$ /feed.php?cat=$1 last; rewrite ^/feed-b([0-9]+).xml$ /feed.php?brand=$1 last; rewrite ^/feed-type([^-]+).xml$ /feed.php?type=$1 last; rewrite ^/feed.xml$ /feed.php last; rewrite ^/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$ /category.php?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5&page=$6&sort=$7&order=$8 last; rewrite ^/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*).html$ /category.php?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5 last; rewrite ^/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$ /category.php?id=$1&brand=$2&page=$3&sort=$4&order=$5 last; rewrite ^/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*).html$ /category.php?id=$1&brand=$2&page=$3 last; rewrite ^/category-([0-9]+)-b([0-9]+)(.*).html$ /category.php?id=$1&brand=$2 last; rewrite ^/category-([0-9]+)(.*).html$ /category.php?id=$1 last; rewrite ^/goods-([0-9]+)(.*).html$ /goods.php?id=$1 last; rewrite ^/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$ /article_cat.php?id=$1&page=$2&sort=$3&order=$4 last; rewrite ^/article_cat-([0-9]+)-([0-9]+)-(.+)(.*).html$ /article_cat.php?id=$1&page=$2&keywords=$3 last; rewrite ^/article_cat-([0-9]+)-([0-9]+)(.*).html$ /article_cat.php?id=$1&page=$2 last; rewrite ^/article_cat-([0-9]+)(.*).html$ /article_cat.php?id=$1 last; rewrite ^/article-([0-9]+)(.*).html$ /article.php?id=$1 last; rewrite ^/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+).html /brand.php?id=$1&cat=$2&page=$3&sort=$4&order=$5 last; rewrite ^/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*).html /brand.php?id=$1&cat=$2&page=$3 last; rewrite ^/brand-([0-9]+)-c([0-9]+)(.*).html /brand.php?id=$1&cat=$2 last; rewrite ^/brand-([0-9]+)(.*).html /brand.php?id=$1 last; rewrite ^/tag-(.*).html /search.php?keywords=$1 last; rewrite ^/snatch-([0-9]+).html$ /snatch.php?id=$1 last; rewrite ^/group_buy-([0-9]+).html$ /group_buy.php?act=view&id=$1 last; rewrite ^/auction-([0-9]+).html$ /auction.php?act=view&id=$1 last; rewrite ^/exchange-id([0-9]+)(.*).html$ /exchange.php?id=$1&act=view last; rewrite ^/exchange-([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$ /exchange.php?cat_id=$1&integral_min=$2&integral_max=$3&page=$4&sort=$5&order=$6 last; rewrite ^/exchange-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*).html$ /exchange.php?cat_id=$1&page=$2&sort=$3&order=$4 last; rewrite ^/exchange-([0-9]+)-([0-9]+)(.*).html$ /exchange.php?cat_id=$1&page=$2 last; rewrite ^/exchange-([0-9]+)(.*).html$ /exchange.php?cat_id=$1 last;

今天进WORDPRESS后台无意看到有可以升级的 一时好奇就升级了 谁知道进后台一看,弹出个大大的红框让升级浏览器,网上一找资料说不支持IE6了,天哪,我一直挺喜欢IE6的啊,尽管那么多人不喜欢IE6可我就是喜欢,就是觉得比IE8 IE9之类的省内存多了,一点就开,我还是很排斥IE8 IE9的。这下咋办?既然升级了就变不回去了,那只好认了,还是换浏览器吧,IE6继续保持,我换OPERA去,要不火狐也行,总之不要IE8,你IE8再好我也不要!要不把WP转到TYPECHO也行!

这个问题很奇怪也很莫名其妙,直到自己有了VPS才知道,原来2003下面居然会有这个问题存在,搞的网站都500错误,想到是数据库连接文件错了,但没想到是IIS在搞鬼,百度了一下,立马找到解决办法:

原因分析:

许多Web页面里要用到诸如../格式的语句(即回到上一层的页面,也就是父路径),而IIS6.0出于安全考虑,这一选项默认是关闭的。

解决方法:

在IIS中属性-> 主目录-> 配置-> 选项中。把”启用父路径“前面打上勾。确认刷新。

当Flash应用程序和页面的其他元素出现重叠时,就会有显示顺序上的问题。默认情况下,Flash应用程序都是优先于其它HTML页面元素而显示在最顶层。要解决这个问题,主要是利用FLASH对象的一个关键属性wmode(window mode)。wmode属性共有三个属性值:Window/Opaque/transparent,在官方文档中已有细致的说明:

* Window: Use the Window value to play a Flash Player movie in its own rectangular window on a web page. This is the default value for wmode and it works the way the classic Flash Player works. This normally provides the fastest animation performance.

* Opaque: By using the Opaque value you can use JavaScript to move or resize movies that don’t need a transparent background. Opaque mode makes the movie hide everything behind it on the page. Additionally, opaque mode moves elements behind Flash movies (for example, with dynamic HTML) to prevent them from showing through.

* Transparent: Transparent mode allows the background of the HTML page, or the DHTML layer underneath the Flash movie or layer, to show through all the transparent portions of the movie. This allows you to overlap the movie with other elements of the HTML page. Animation performance might be slower when you use this value.

“Window”窗口模式是默认值。在 Web 页上用影片自己的矩形窗口来播放应用程序,它表明 Flash 应用程序与 HTML 层没有任何交互,并且始终位于最顶层。

“Opaque”不透明模式。使Flash应用程序隐藏该页面上所有位于它之后的元素内容。

“Transparent”透明模式。使 HTML 页面的底层元素可以透过FLash应用程序的透明部分来进行显示,使用这个模式会降低动画的回放效果。

“Opaque ”和“Transparent ” 都可与 HTML 层交互,所以可以使用z-index属性来控制重叠元素的显示顺序。

wmode属性的用法:

针对IE:在<object></object>内加上参数 <param name="wmode" value="Opaque"  />

针对非IE:在<embed />标签添加属性wmode="Opaque"