From ab12f50dcbb5f35298acf49f7768c628edb59d59 Mon Sep 17 00:00:00 2001 From: Randy Fay Date: Fri, 11 Oct 2024 12:32:33 -0600 Subject: [PATCH] Change to use short link and 301 (#259) --- README.md | 3 +++ public/_redirects | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9d98818b..b824ed15 100644 --- a/README.md +++ b/README.md @@ -182,6 +182,9 @@ If you’re adding a new item to the array, choose whichever position it should Any redirect can be added to ddev.com by editing `public/_redirects`. This can be useful to provide short redirects in a variety of contexts. Redirects can be to local URLs or to DDEV docs, for example. +* Most redirects should be listed as `301` for a permanent redirect. +* Short links can be prefixed with `/s` to imply their nature. For example, `/s/port-conflict` + ## Build & Deployment For the site to exist at `ddev.com`, it needs to be built and hosted somewhere. Cloudflare Pages responds to commits in order to build and deploy the site. diff --git a/public/_redirects b/public/_redirects index 64afc5c7..f0308d3e 100644 --- a/public/_redirects +++ b/public/_redirects @@ -1,5 +1,5 @@ /install.sh https://raw.githubusercontent.com/ddev/ddev/master/scripts/install_ddev.sh 302 -/port-conflict https://ddev.readthedocs.io/en/stable/users/usage/troubleshooting/#web-server-ports-already-occupied +/s/port-conflict https://ddev.readthedocs.io/en/stable/users/usage/troubleshooting/#web-server-ports-already-occupied 301 /ddev-local/ddev-wsl2-getting-started/ https://ddev.readthedocs.io/en/stable/users/install/ddev-installation/#windows 301 /ddev-local/apache-solr-with-drupal-8-and-search-api-solr/ https://github.com/ddev/ddev-drupal9-solr 301 /ddev-local/ddev-local-web-container-customization-in-v1-8-0/ https://ddev.readthedocs.io/en/stable/users/extend/customizing-images/ 301