惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Engineering at Meta
Engineering at Meta
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
人人都是产品经理
人人都是产品经理
Project Zero
Project Zero
T
Tailwind CSS Blog
Jina AI
Jina AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
小众软件
小众软件
L
LINUX DO - 热门话题
Spread Privacy
Spread Privacy
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
The Hacker News
The Hacker News
C
Cisco Blogs
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
Scott Helme
Scott Helme
Security Archives - TechRepublic
Security Archives - TechRepublic
H
Heimdal Security Blog
博客园 - 【当耐特】
W
WeLiveSecurity
J
Java Code Geeks
Latest news
Latest news
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Troy Hunt's Blog
博客园 - Franky
月光博客
月光博客
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
PCI Perspectives
PCI Perspectives
博客园_首页
C
CERT Recently Published Vulnerability Notes
P
Proofpoint News Feed
P
Palo Alto Networks Blog
I
InfoQ
Security Latest
Security Latest
Hacker News: Ask HN
Hacker News: Ask HN
Microsoft Azure Blog
Microsoft Azure Blog
M
MIT News - Artificial intelligence
Help Net Security
Help Net Security
F
Full Disclosure
Cyberwarzone
Cyberwarzone
D
DataBreaches.Net
The Cloudflare Blog
S
Securelist
美团技术团队
C
Cybersecurity and Infrastructure Security Agency CISA
AI
AI
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events

筱枫 – 魔帆博客

日文中的衬线、非衬线混排 | 魔帆博客 网页排版中的字体衬线 | 魔帆博客 中兴 CPE (4G) 设置 IPv6 联网 | 魔帆博客 使用 Aria2 搭建离线下载服务器 | 魔帆博客 使用 Jinja2 从模板生成网页 | 魔帆博客 使用 Excel 在地图上标注城市 | 魔帆博客 微信小程序健康打卡自动填报程序-使用 Fiddler 抓包 | 魔帆博客 替换 PHP creat_function() 函数 | 魔帆博客 PC 使用 iTunes 将照片向 iPhone 的不同相册导入 | 魔帆博客 【机房技巧】关于解除 机房管理助手 程序及摆脱控制的研究 | 魔帆博客 【Javascript】自动删除QQ空间说说 | 魔帆博客 【短文】雨·呼喊·愤懑 | 魔帆博客 如何使用js调试工具Console制作彩蛋/输出信息 | 魔帆博客 【酷站】OldWeb-怀旧专用 看看我们网络的黑历史 | 魔帆博客 【娱乐向】为什么你的金鱼养着养着就挂了? | 魔帆博客 【哲学】关于颜色的思考 | 魔帆博客 【实用】在学校机房玩电脑的技巧 | 魔帆博客 催泪电影《忠犬八公的故事》 | 魔帆博客 温暖人心电影《背影》 | 魔帆博客
MediaWiki 的伪静态设置 (Apache 环境) | 魔帆博客
筱枫 · 2020-02-02 · via 筱枫 – 魔帆博客

一共两步。

首先,在网站根目录找到或新建 .htaccess 文件,键入以下内容。
如果你的 Wiki 程序位于根目录,则
(警告 由于我的 Wiki 程序不在根目录,我没有对下面的代码进行过测试,请自行测试)

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/(.*)$ /index.php?title=$1
RewriteRule ^/*$ /index.php
RewriteRule ^(.*)$ /index.php

假设你的 Wiki 程序位于某目录 /wiki 下,则

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^wiki/(.*)$ wiki/index.php?title=$1
RewriteRule ^wiki/*$ wiki/index.php
RewriteRule ^wiki$ wiki/index.php

接着,打开你的 Wiki 程序下的 LocalSettings.php ,在末尾或你喜欢的位置加上
如果你的网站在根目录下,请删去/wiki

$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true;

打开你的网站测试。
若有问题,请回滚上述步骤。
祝你好运。

原文地址 :https://hsiaofeng.com/archives/29.html