Frontend Redirect Rules

Redirection is the process of forwarding one URL to a different URL.

There are three main kinds of redirects: 301, 302, and meta refresh. It is a way to send both users and search engines to a different URL from the one they originally requested.

Add Frontend Redirect Rules

  1. Login into your MainWP Dashboard
  2. Go to the MainWP > Extensions > Dashboard Lock extension page
  3. Locate the Frontend Redirect Rules option box
  4. Enter the URL where you want to redirect the traffic
  5. Click the Save Settings button

Remove Frontend Redirect Rules

  1. Login into your MainWP Dashboard
  2. Go to the MainWP > Extensions > Dashboard Lock extension page
  3. Locate the Frontend Redirect Rules option box
  4. Delete the URL from the Redirect frontend traffic field
  5. Click the Save Settings button

Exclude Custom Pages from Redirection

  1. Login into your MainWP Dashboard
  2. Go to the MainWP > Extensions > Dashboard Lock extension page
  3. Locate the Frontend Redirect Rules option box
  4. Locate the Exclude slugs from the redirection option
  5. Enter wanted pages (one per line)
  6. Click the Save Settings button
Do not add a full-page URL in the box. It’s enough to add just a page slug. For example, if you want to exclude http://yourdomain.com/sample-page/, add /sample-page/ in the box.

Important Notes

WP-Cron: Adding the Frontend Redirect Rules may affect your WP-Cron function. If you notice that scheduled functions are not working, please remove the Frontend Redirect Rules.
REST API: To avoid Frontend Redirect from affecting the REST API functionality, please add /wp-json to the exclusion list.
Frontend Redirect Rules 1