help center

On this page

Create redirects for your static site

Last Update: March 18, 2024

If you want to set up redirects from one page to another on your site, there are several helpful WordPress plugins you can use:

It is important to remember two things when using these redirection plugins:

  1. Use Relative URLs: Use /about/ instead of https://site.com/about/ 
  2. Add a Trailing Slash: This has a trailing slash /about/. This does not /about.

Below you will find instructions on how to use each of the plugins mentioned above as well as the following FAQs.


Redirection 

  1. Install and activate the Redirection Plugin.
  2. Complete the plugin setup by selecting the default options.
  3. Navigate to Tools > Redirection.
  4. Add a new redirection rule using relative links with trailing slashes.
  5. Perform a Selective or Full publish (learn how).
    Make sure to test on your preview or live static site!
image 29 Create redirects for your static site 1

Additional Settings

image 30 Create redirects for your static site 3
  • It is recommended that you use the URL Monitor feature (navigate to Tools > Redirections > Options), which automatically creates a redirect to the new URL when a post or page slug is changed.
  • The built in 404 logging feature will log 404s on the WordPress site, and not on either the static live or preview site.  

Safe Manager Redirect 

  1. Install and activate the Safe Redirect Manager Plugin.
  2. Navigate to Tools > Safe Manager Redirect.
  3. Click Create Redirect Rule.
  4. Add a new redirection rule using relative links with trailing slashes.
  5. Perform a Selective or Full publish (learn how).
    Make sure to test on your preview or live static site!
image 31 Create redirects for your static site 5

Simple 301 

  1. Install and activate the Simple 301 Redirects plugin.
  2. Navigate to Settings > 301 Redirects.
  3. Click Create Redirect Rule.
  4. Add a new redirection rule using relative links with trailing slashes.
  5. Click Add New.
  6. Perform a Selective or Full publish (learn how).
    Make sure to test on your preview or live static site!
image 32 Create redirects for your static site 7

Yoast SEO Premium

  1. Install and activate the Yoast SEO Premium plugin (this feature is not available in the free version).
  2. Navigate to SEO > Redirects.
  3. Here you can easily enter the old URL and the new one you’d like to redirect it to.
  4. Select the type of redirect.
  5. Click the Add Redirect button.
  6. Perform a Selective or Full publish (learn how).
    Make sure to test on your preview or live static site!
image 33 Create redirects for your static site 9

Rank Math

  1. Install and activate the Rank Math plugin.
  2. The redirections module must be enabled under Rank Math > Dashboard > Modules.
  3. The redirections page can be found in Rank Math > Redirections.
  4. Click Add New.
  5. Here you can easily enter the old URL and the new one you’d like to redirect it to.
  6. Select the type of redirect.
  7. Set the status as active.
  8. Click the Add Redirection.
  9. Perform a Selective or Full publish (learn how).
    Make sure to test on your preview or live static site!
image 34 Create redirects for your static site 11

Publish your redirects to your static site

If you have made many redirects, your best option would be to run a Full Publish.

If you have only made one or two redirects you may prefer to use Selective Publish from the Publish Options page.

Here’s how to do it:

  1. From the WordPress dashboard, go to Static Site > Publish Options.
  2. Input the URL that you are redirecting from.
  3. Click Selective publish. For example: if /this-page/ redirects to /that-page/
  4. Input /this-page/ and then click the selective publish to live/preview button.
image 35 Create redirects for your static site 13

It is important to mention that if you have not yet published the new page that you are redirecting to (example: /that-page/), then you should also add that path to the selective publish as well. This will result in both the old page and the new page being published simultaneously.


FAQs

Can I use REGEX redirects on my static site?

REGEX Redirects are redirects that use Regular Expressions to match multiple source URLs and send them all to the same destination. We’re working on a feature to make this possible.


What if my URL has a capital letter in it?

It is recommended that you use lowercase letters in your URL/slug.

Whenever a capital is used and the slug is not capitalized, the lowercase version of the URL will be displayed.

Example: /This-Slug/ would be redirected to /this-slug/

Have more questions? We’re more than happy to assist.

Link is copied to clipboard!
On this page

Is this article helpful?

Share this article

Wait! You get 30-Day Money-back Guarantee

You have nothing to lose – but the discount

days
hours
minutes
seconds