Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Display message when not adding www redirection

未关闭
#232 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
php
领域
cli, devops

调研方向

issue 中没有指定文件或测试。首先跟踪 site-create 命令的 www 和 SSL 重定向路径以及配置生成过程。完成的标准是:始终添加 HTTP www 重定向;HTTPS 重定向取决于 SSL 和 DNS 是否指向正确;缺少重定向的消息同时显示在屏幕上和配置注释中。

由索引模型根据 Issue 内容生成。

描述

good first issue

EasyEngine adds www redirections(www.example.com -> example.com or vice-versa) only if it finds that domain with www is pointed to the server. The reason for doing so is that to add https redirect from www.example.com -> example.com, we need a cert that is valid for both domains www.example.com and example.com. And to get that certificate, we need to ensure www is pointed to the server.

This leads to confusion among users who find that sometimes the redirection file is added, while sometimes it is not - https://community.easyengine.io/t/ee-site-create-503-service-temporarily-unavailable/12032

Solution to this issue is:

  1. Always add HTTP www redirection
  2. If the site has SSL and www domain is pointed, add https www redirection
  3. If the site has SSL and www domain is not pointed, show a message on the user's screen that https redirection is not added as the domain is not pointed. Also, add a similar message as comment in the redirection config file.
主要语言
PHP
星标
18
派生
27
平均合并
5 小时 1 分钟
30 天内合并 PR
7

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

EasyEngine/site-command 的其他 Issue

查看 EasyEngine/site-command 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。