lnmpa1.4 开启https后wp插件Link Hopper失效
lnmp1.4我安装时候一开始用lnmp,然后这个Link Hopper插件是不管用的,然后我又重新装了lnmpa,结果就管用了,但是我开启了https之后,这个网址跳转的插件就又不管用了,我看vpser.net上开启了https并且也应该是用的这个插件做的网址跳转,不知道是怎么配置的,希望大神能帮忙解答一下我的系统是Debian8 64位的,装了lnmpa 1.4的
我的conf文件如下
server
{
listen 80;
server_name youhun.org www.youhun.org;
return 301 https://www.youhun.org$request_uri;
}
server
{
listen 443 ssl http2;
#listen [::]:443 ssl http2;
server_name youhun.org www.youhun.org;
index index.html index.htm index.php default.html default.htm default.php;
root/home/wwwroot/youhun.org;
ssl on;
ssl_certificate /etc/letsencrypt/live/youhun.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/youhun.org/privkey.pem;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5";
ssl_session_cache builtin:1000 shared:SSL:10m;
# openssl dhparam -out /usr/local/nginx/ssl/dhparam.pem 2048
ssl_dhparam /usr/local/nginx/ssl/dhparam.pem;
#error_page 404 /404.html;
# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
include proxy-pass-php.conf;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /.well-known {
allow all;
}
location ~ /\.
{
deny all;
}
access_log off;
}
我还有.htaccess文件
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ -
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
# END WordPress https下这个插件有问题,而且很久都不更新了,就不再用了
回复 2# 的帖子
军哥现在用什么插件呢? 我找到一个可以用的Simple URLs回复 3# 的帖子
用的短网址程序
页:
[1]