↓ 快轉到主要內容

Archive

All posts here.

2023

5 Tips on Creating Redirects in .htaccess

5 Tips on Creating Redirects in .htaccess

·350 字·2 分鐘
Per-directory rewrites need rewriting within <Directory> sections or .htaccess files, which introduces some complexity. However, if you only have permission to modify files, you must know how to put redirects in .htaccess files with RewriteRule. 1RewriteEngine on 2RewriteRule ^/index\.html$ /index.php [L] A RewriteRule consists of three arguments separated by spaces. The arguments are Pattern: which incoming URLs should be affected by the rule, ex ^/index\.html$; Substitution: where should the matching requests be sent, ex /index.php; [flags]: options affecting the rewritten request, ex [L]. Here are 5 tips for creating redirects in .htaccess files.

2022

在Mac上安裝Umbraco CMS

在Mac上安裝Umbraco CMS

·597 字·2 分鐘
安裝 dotnet SDK # 下載並安裝 .NET 6.0 SDK (v6.0.301) https://dotnet.microsoft.com/en-us/download 安裝 Visual Studio 2022 for mac # 下載並安裝 Visual Studio 2022 for mac (v17.0) https://visualstudio.microsoft.com/vs/mac/
Drupal 9 Views 分頁器設置首頁顯示不同的條目個數

Drupal 9 Views 分頁器設置首頁顯示不同的條目個數

·372 字·1 分鐘
在Drupal Views 中自帶了分頁功能 Pager,可以在界面上自定義每頁要顯示條目個數 Items to display,要跳過的個數 Offset (number of items to skip),總頁數 Number of pages,分頁的標籤 Page Link Labels,指定分頁顯示的個數 Number of pager links visible。