Settings

Redirects

When you move your blog to blogstatic, redirecting your old URL structure is important for keeping your SEO results intact.


If you're moving your domain and blog to blogstatic and have many URLs with a different structure coming from your previous build — one way to 301 redirect them to your new blogstatic URLs is via Cloudflare.

To utilize this feature, make sure that your domain is running via Cloudflare. You can use this article from our guide to set it up.


From your dashboard in Cloudflare, on the left hand Sidebar, find "Rules" and then click on "Page Rules"

Once inside of "Page Rules", click on the "Create Page Rule" button.

A form similar to the one below will open up.

In the "URL" input field, write down the structure of your previous blog.

If, for example, your previous blog had the following structure domain.com/2024/10/11/post-url in the "URL" input field you can write domain.com/*/*/*/* where each asterisk represents a segment from your previous URL structure.

For the "settings" drop-down, you would pick "Forwarding URL" and then choose  "301 - Permanent Redirect" from the "status code" drop-down.

And for the "destination URL" at the end, you can add domain.com/$4.

This setup tells Cloudflare to take the incoming URL with four segments and redirect it to your domain.com by adding only the 4th segment (from your old URL structure) at the end of the URL.

Note: you have to make sure that the post-url on the 4th segment in your old URL structure matches the post-url on your blogstatic blog.

At the end, click the "Save and Deploy Page Rule" button — and test your rule by visiting your domain.com/2024/10/11/post-url and see if it redirects to domain.com/post-url.

This way Google will associate your new URLs with your old ones so you don't lose any hard-earned SEO juice.

You can forward all your URLs from your previous setup with this one simple rule.

If you want to dive deeper into Cloudflare documentation, click here.