前台路径由程序路由决定,不是苹果 V10 那种在后台拼规则。nginx / Apache 只要把未知路径交给 public/index.php。网站根目录必须是 public。
默认前台地址
| 页面 | 路径 |
|---|---|
| 首页 | / |
| 分类 | /type/{id} |
| 筛选 | /show |
| 搜索 | /search |
| 影片详情 | /vod/{id} |
| 播放 | /play/{id} |
| 下载页 | /down/{id} |
| 最近更新 | /latest |
| 专题 | /topics、/topic/{id} |
| 演员 | /actors、/actor/{id} |
| 资讯 | /arts、/art/{id} |
| 会员 | /member |
| 后台 | /admin/login |
| 站点地图 | /sitemap.xml |
| 漫画 / 小说 / 直播 | 对应插件启用后才有,如 /manga |
后台「站点设置 → 更多」可改成带 .html 的苹果风格路径。改完清缓存再测。磁盘静态页不能依赖额外查询参数。
nginx
完整 server 段见「环境」。关键是这一行:
location / {
try_files /html$uri/index.html /html$uri $uri $uri/ /index.php?$query_string;
}
Apache
网站根目录同样指向 public,并允许 .htaccess。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
打开首页如果是目录列表,就是根目录没指到 public。