Creating a 301 redirect

When you transition from your previous donation platform to Fundraise Up, it may be necessary to implement 301 permanent redirects. These redirects point the URLs of old donation landing pages to Checkout URLs and maintain your search engine optimization (SEO).

While there is no universal way to implement 301 redirects, we cover three common scenarios below.

Apache

If your website runs on an Apache server, you need to edit your .htaccess file to implement the 301 redirects. To make changes to this file, you must have access to your web server using an FTP client.

In the .htaccess access file, you will insert a line for each URL that you want to redirect using the following formats.

Redirect a single page Redirect 301 /old-page/ /new-page/
Redirect an entire domain to another domain Redirect 301 / https://www.mycharity.org
Redirect an entire site to a subfolder Redirect 301 / https://www.website.com/subfolder/
Redirect a subfolder to a different domain Redirect 301 /subfolder https://www.nnewwebsite.com/
Redirect a site directory after a URL change Options +FollowSymLinks RewriteEngine On RewriteRule ^(.)/old-category/(.)$ $1/new-category/$2 [R,L]

Nginx

To create a permanent 301 redirect on Nginx, you need to add a line to your .conf file that is typically round in the root of your server.

Some of the common lines you might need to use are:

Redirect a single page server { # Permanent redirect to an individual page rewrite ^/old-page$ http://www.website.com/new-page permanent; }
Redirect an entire domain to another domain server { # Permanent redirect to new URL server_name website.com; rewrite ^/(.*)$ http://newwebsite.com/$1 permanent; }

Windows Server

If your site runs on a Windows server in ASP.NET, you need to add redirects into the web.config file that you should find in the site root.

Here is how to implement the most common 301 redirect types:

Redirect a single page <location path="old-page"> <system.webServer> <httpRedirect enabled="true" destination="http://www.website.com/new-page/" httpResponseStatus="Permanent" /> </system.webServer> </location>
Redirect an entire domain to another domain <system.webServer> <httpRedirect enabled="true" destination="http://www.newwebsite.com/" /> </system.webServer>

WordPress

If your website is built on WordPress, you can use the Redirection plugin to create easily create 301 redirects without needing FTP access to your web server.

Still need help?

Need help with something not covered in Support Center? Connect with a support engineer for more assistance.
Email us