From 6b742c459266b18e2b375b35205ce8a6c02f0452 Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Thu, 6 Jun 2024 08:05:12 -0400 Subject: Initial commit --- build/netlify-urls/index.html | 68 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 build/netlify-urls/index.html (limited to 'build/netlify-urls') diff --git a/build/netlify-urls/index.html b/build/netlify-urls/index.html new file mode 100644 index 0000000..0502441 --- /dev/null +++ b/build/netlify-urls/index.html @@ -0,0 +1,68 @@ + + + + + + + Using Netlify for Dynamic URL Redirects + + + + + + +
+

Using Netlify for Dynamic URL Redirects

+

2021-12-03

+

With the recent domain switch that took place on this website, I needed to have a dependable setup to forward my old domain URLs to the new one. While using something like "URL forwarding" through your domain provider could work, it doesn't natively support dynamic linking. Let me explain using a basic example:

+ +

Simple stuff. So, let's breakdown how to easily set this up on Netlify for free.

+

Setting Up Netlify

+ +
https://olddomain.com/* https://newdomain.com/:splat 301!
+
+

That's it! Now Netlify will dynamically forward all your pre-existing URLs from your old domain to the new one. No pesky .htaccess files or running your own basic web server(s)!

+

Hopefully this helps others trying to dynamically redirect their domains without the headache.

+

Refs

+
    +
  1. I normally set this up through Github / git hosting
  2. +
+ \ No newline at end of file -- cgit v1.2.3-54-g00ecf