2021-01-28 How to remove /index.php/ from my URL How to remove /index.php/ from my URL I suggest reading this short introduction https://httpd.apache.org/docs/2.4/rewrite/intro.html (15mins) and reference these 2 pages while reading.https://httpd.apache.org/docs/2.4/mod/mod_rewrite.html https://httpd.apache.org/docs/2.4/rewrite/flags.htmlThis is the basic rule to hide index.php from the URL. Put this in your root .htaccess file.mod_rewrite must be enabled with PHP and this will work for the PHP version higher than 5.2.6.RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f Rewri... Chiu Yau 2021-01-28 文章,域名,学术,Git 2021年01月28日 93,238 阅读 1 评论
2021-01-25 Unknown collation: 'utf8mb4_0900_ai_ci' - MySQL Error Unknown collation: 'utf8mb4_0900_ai_ci' - MySQL Error This article is in English.MySQL Error: Importing database: Unknown collation: 'utf8mb4_0900_ai_ci'This is Github / issues of MySQL....(Something else not important to solve this issue)...Opened the .sql file in Notepad++ ( Alternative: Open the .sql file in Microsoft Word ) and hit CTRL+H ( Alternative: [Microsoft Word] hit CTRL + F ) to find and replace the string “utf8mb4_0900_ai_ci” and replaced it with “utf8mb4_general_ci“.It worked for me ,hope it will work for u as well....(Something e... Chiu Yau 2021-01-25 文章,域名,学术,Git 2021年01月25日 103,569 阅读 0 评论
2020-12-04 图标和浏览器颜色 | Chrome 图标和浏览器颜色 | Chrome 现代浏览器让您能够轻松地定制特定组件,如图标、地址栏颜色,甚至允许添加自定义磁贴等对象。这些简单的改进可提升吸引力,吸引用户再次访问您的网站。提供出色的图标和磁贴当用户访问您的网页时,浏览器会尝试从 HTML 提取图标。图标可能出现在许多地方,包括浏览器标签、最近的应用切换、新的(或最近访问的)标签页面等。提供高质量的图像将使您的网站更具辨识度,让用户更容易发现您的网站。为充分支持所有浏览器,您需要向每个页面的 <head> 元素添加几个标记。<!-- icon in the highest resolution we need it for --><link rel="icon" sizes="192x192" href="icon.png"><!-- reuse same icon for Safari --><link rel="apple-touch-icon" href="ios-icon.png"><!-... Chiu Yau 2020-12-04 文章,Git 2020年12月04日 63,446 阅读 0 评论
2020-12-01 关闭 WordPress 自适应 Disable Responsive Layout in WordPress 关闭 WordPress 自适应 Disable Responsive Layout in WordPress Removing responsive CSSFrom your WordPress Dashboard, navigate to Appearance → Editor. When the editor screen loads, select Header (header.php) file from the list on the right, and remove the line including viewport tag from it:<pre class="wp-block-preformatted"><meta name="viewport" content="width=device-width, initial-scale=1.0" /></pre> Then select Stylesheet (style.css) file, scroll down nearly to the bottom, until you find the section which... Chiu Yau 2020-12-01 文章,Git 2020年12月01日 80,093 阅读 0 评论
2020-11-24 宝塔 ionCube Loader 疑难排查 宝塔 ionCube Loader 疑难排查 如果你是使用宝塔,然后在日志中出现你还没有安装 ionCube Loader 的话,一般只有俩种情况:1. 未安装 ionCube Loader前往软件商店选择你站点正在使用的 php 版本,设置 安装扩展 选择 ionCube 安装,请注意一定要安装在你使用的PHP版本。2. 我明明已经安装好了,重启重试数次错误还是一样这是因为你宝塔上有多个PHP安装了,而切有多于一个的 ionCube 安装了在不同的PHP版本上导致的。解决方案就是卸载多余的PHP版本或者ionCube,目前宝塔不支持多于一个的 ionCube Loader 系统无法选择使用哪个版本的。原创文章,转载请注明出处谢谢。 Chiu Yau 2020-11-24 文章,域名,Git 2020年11月24日 90,419 阅读 0 评论
2020-10-20 域名-自定义 DNS 域名-自定义 DNS 最近有人问我,怎么用自己的域名搭建 dns 服务器,然后在域名 dns 那里添加自己的域名自己搭建 dns 服务器不划算,也不可靠,其实我们可以利用第三方的 dns 的服务,同时也可以自定义 DNS 服务器域名国外把这种自定义 DNS 域名的行为称为 DNS Branding / Vanity Name Servers / White-Label DNS在此推荐 CLOUDNS cloudns.net 的 premium dns 服务premium dns 提供几个套餐,免费套餐是没有自定义 DNS 域名服务的,所以,我花了$17.70 订阅了 6 个月的 Premium S 套餐,该套餐允许托管 25 个域名,cloudns 也提供 url 转发服务以域名 dns.earth 为例第一步,我们首先在cloudns 后台的DNS zone 板块-------Master zone-----选中Create this zone without any records,输入域名angela.baby,最后create,这样我们就把angela . baby 托管到了cloudns第二... Chiu Yau 2020-10-20 文章,Git 2020年10月20日 107,803 阅读 0 评论