小编Tre*_*ton的帖子

设置一次后,如何设置sublime文本自动检测文件类型?

例如,我有一个.zsh文件,我希望始终在sublime中打开作为"Shell脚本(bash)"文件类型.目前,即使我更改并重新打开它,它也会默认返回文本文件格式.

file-type sublimetext sublimetext2 sublimetext3

13
推荐指数
1
解决办法
9149
查看次数

SSL打破Facebook Likes按钮

我的博客https://sonicscoop.com的历史可以追溯到2012年,有数百个Facebook"喜欢",例如这个https://sonicscoop.com/2012/08/29/the-big-list- of-free-pro-tools-plugins-2 /,但是当我们切换到https:这里时,他们都丢失了正确的计数,如下所示:

https://developers.facebook.com/tools/debug/sharing/?q=https%3A%2F%2Fsonicscoop.com%2F2012%2F08%2F29%2Fthe-big-list-of-free-pro-tools-plugins -2%2F

出于某种原因,Facebook的调试器检测规范,并og:urlhttps://即使网页呈现的HTML显示他们作为http://.

如果我可以让Facebook拿起旧版帖子的http规范,我希望喜欢的人会回到正确的数量.这是我的.htaccess档案:

# --enable htaccess rewrites
RewriteEngine on
# --force https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NE]
# --remove www for site
RewriteCond %{HTTP_HOST} ^www\.sonicscoop\.com [NC]
RewriteRule ^(.*)$ https://sonicscoop.com/$1 [L,R=301]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
AddHandler application/x-httpd-php54s .php
Run Code Online (Sandbox Code Playgroud)

php wordpress ssl facebook-like facebook-graph-api

6
推荐指数
1
解决办法
368
查看次数