例如,我有一个.zsh文件,我希望始终在sublime中打开作为"Shell脚本(bash)"文件类型.目前,即使我更改并重新打开它,它也会默认返回文本文件格式.
我的博客https://sonicscoop.com的历史可以追溯到2012年,有数百个Facebook"喜欢",例如这个https://sonicscoop.com/2012/08/29/the-big-list- of-free-pro-tools-plugins-2 /,但是当我们切换到https:这里时,他们都丢失了正确的计数,如下所示:
出于某种原因,Facebook的调试器检测规范,并og:url为https://即使网页呈现的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)