Skip to content

Instantly share code, notes, and snippets.

@bstonedev
Last active September 28, 2024 05:32
Show Gist options
  • Save bstonedev/7a227841a9cfdf1601da00d04a507f32 to your computer and use it in GitHub Desktop.
Save bstonedev/7a227841a9cfdf1601da00d04a507f32 to your computer and use it in GitHub Desktop.
WordPress Redirection Plugin - Redirect all pages except wp admin pages
Source URL: ^(\/(?!wp-admin|wp-login).*)$
Target URL: https://main-website.com/$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment