月度归档: 2019 年 8 月

  • Typecho伪静态去除/index/

    先来几张去掉后的效果图

    1.文章页面
    TIM截图20190804142908.jpg

    2.独立页面
    TIM截图20190804142916.jpg

    3.分类页面
    TIM截图20190804142922.jpg

    嗯,去掉后是不是感觉link变得简洁了好多。

    下面是配置文件

    nginx 配置

    server {
            listen          80;
            server_name     yourdomain.com;
            root            /home/yourdomain/www/;
            index           index.html index.htm index.php;
    
            if (!-e $request_filename) {
                rewrite ^(.*)$ /index.php$1 last;
            }
    
            location ~ .*\.php(\/.*)*$ {
                include fastcgi.conf;
                fastcgi_pass  127.0.0.1:9000;
            }
    
            access_log logs/yourdomain.log combined;
        }
    

    apache 配置

    <IfModule mod_rewrite.c>
        RewriteEngine On
    
        RewriteBase /
    
        RewriteCond %{REQUEST_FILENAME} !-f
    
        RewriteCond %{REQUEST_FILENAME} !-d
    
        RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
    
    </IfModule>
    

    后台处理

    配置完服务器后还有在后台永久链接那儿将自定义文章路径改成WordPress类型
    然后使用地址重写功能保存设置即可啦。

  • 旧博客数据重见天日啦

    之前的WordPress数据一直存在七牛,也一直懒得搞出来。
    TIM图片20190802165404.jpg
    昨天突然看到自己四年前做的逗图大滑稽,一时间想到很多东西,想看看几年前的记忆
    于是乎就想到的我的老博客,七牛果然挺靠谱,数据还在那儿,然后我就下载下来并在本地搭建上了
    顺便来了个WordPress转Typecho
    TIM截图20190802164939.jpg
    就成了这样的了,127篇文章,208次评论,承载了整个初中的回忆。

    还有多年前的作品:
    psb.jpg