首页
留言板
友情链接
Search
1
【javascript】JS-向当前url追加参数
2,215 阅读
2
【PHP】生成随机昵称
2,076 阅读
3
【PHP】判断一个字符串是否属于序列化后的数据
1,963 阅读
4
【css】html+css给文章页,做阅读全文
1,858 阅读
5
【PHP】 设计模式(23种)
1,775 阅读
默认分类
typecho
代码改变世界
mysql
Winform
go
设计模式
PHP
python
nginx
网络安全
文艺范
Search
标签搜索
php
typecho
代码注释
mysql
redis
golang
docker
html
curl
linux
nginx
go
mamp
laravel
跨域
http
rsa
sql
酒
godoc
依然范儿特西
累计撰写
106
篇文章
累计收到
25
条评论
首页
栏目
默认分类
typecho
代码改变世界
mysql
Winform
go
设计模式
PHP
python
nginx
网络安全
文艺范
页面
留言板
友情链接
搜索到
2
篇与
nginx
的结果
2021-10-20
nginx解决跨域问题
nginx options 跨域问题 请求HTTP错误405 用于访问该页的HTTP动作未被许可 Method Not Allowed
2021年10月20日
77 阅读
0 评论
2 点赞
2021-06-08
【Typecho】 Typecho去掉 index.php
Typecho 后台设置永久链接后,会在域名后加上 index.php,很多人都接受不了。 例如如下网址: https://richerdyoung.com/index.php/p/75.html 但我们希望最终的形式是这样: https://richerdyoung.com/p/75.html 那么我们如何做到这样的效果?1. 配置服务器的 rewrite 规则nginx server { listen 80; server_name richerdyoung.com; root /home/laofan/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/richerdyoung.com.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> 2. 后台配置 typecho 伪静态在 typecho 后台,开启伪静态,并选择你喜好的 url形式:网站设置-》永久链接,选择启用地址重写功能
2021年06月08日
104 阅读
0 评论
0 点赞